21 template <
typename Derived>
25 const unsigned int qp,
29 const unsigned int qp,
36 template <
typename Derived>
49 for (
unsigned int batch = 0; batch < num_batches; ++batch)
54 for (
unsigned int ij = ijb; ij < ije; ++ij)
55 local_ke[ij - ijb] = 0;
57 for (
unsigned int qp = 0; qp < datum.
n_qps(); ++qp)
61 for (
unsigned int ij = ijb; ij < ije; ++ij)
63 unsigned int i = ij % datum.
n_jdofs();
64 unsigned int j = ij / datum.
n_jdofs();
66 local_ke[ij - ijb] += datum.
JxW(qp) * kernel.computeQpJacobian(i, j, qp, datum);
70 for (
unsigned int ij = ijb; ij < ije; ++ij)
72 unsigned int i = ij % datum.
n_jdofs();
73 unsigned int j = ij / datum.
n_jdofs();
81 KOKKOS_FUNCTION
inline Real 83 const unsigned int qp,
89 KOKKOS_FUNCTION
inline Real 92 const unsigned int qp,
KOKKOS_FUNCTION unsigned int n_jdofs() const
Get the number of local DOFs for the coupled variable.
const InputParameters & parameters() const
Get the parameters of the object.
const VariableTestValue _test
Current test function.
KOKKOS_FUNCTION Real computeQpResidual(const unsigned int i, const unsigned int qp, ResidualDatum &datum) const
The base class for Kokkos time-derivative kernels.
const Scalar< const Real > _du_dot_du
Derivative of u_dot with respect to u.
KokkosTimeDerivative(const InputParameters ¶meters)
KOKKOS_FUNCTION void accumulateTaggedElementalMatrix(const Real local_ke, const ContiguousElementID elem, const unsigned int i, const unsigned int j, const unsigned int jvar, const unsigned int comp=0) const
Accumulate local elemental Jacobian contribution to tagged matrices.
const VariableValue _u_dot
Time derivative of the current solution at quadrature points.
KOKKOS_FUNCTION unsigned int n_qps() const
Get the number of local quadrature points.
constexpr unsigned int MAX_CACHED_DOF
Maximum number of DOFs to cache during residual and Jacobian computation.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
KOKKOS_FUNCTION const ElementInfo & elem() const
Get the element information object.
KOKKOS_FUNCTION Real JxW(const unsigned int qp)
Get the transformed Jacobian weight.
KOKKOS_FUNCTION void computeJacobianInternal(const Derived &kernel, ResidualDatum &datum) const
KOKKOS_FUNCTION Real computeQpJacobian(const unsigned int i, const unsigned int j, const unsigned int qp, ResidualDatum &datum) const
const VariablePhiValue _phi
Current shape function.
auto min(const L &left, const R &right)
KOKKOS_FUNCTION unsigned int jvar() const
Get the coupled variable number.
The Kokkos object that holds thread-private data in the parallel operations of Kokkos residual object...
KOKKOS_FUNCTION void reinit()
Reset the reinit flag.
KOKKOS_FUNCTION unsigned int n_idofs() const
Get the number of local DOFs.
ContiguousElementID id
Contiguous element ID.