21 template <
typename Derived>
23 template <
typename Derived>
26 template <
typename Derived>
28 template <
typename Derived>
30 const unsigned int qp,
32 template <
typename Derived>
45 template <
typename Derived>
48 return &KokkosTimeDerivative::computeQpJacobianDummy<Derived>;
55 template <
typename Derived>
59 ResidualObject::computeResidualInternal(
61 [&](
Real * local_re,
const unsigned int ib,
const unsigned int ie)
63 for (
unsigned int qp = 0; qp < datum.
n_qps(); ++qp)
65 Real value = datum.
JxW(qp) * kernel.template computeQpResidual<Derived>(qp, datum);
67 for (
unsigned int i = ib; i < ie; ++i)
73 template <
typename Derived>
89 for (
unsigned int batch = 0; batch < num_batches; ++batch)
94 for (
unsigned int i = ib; i < ie; ++i)
97 for (
unsigned int qp = 0; qp < datum.
n_qps(); ++qp)
99 Real value = datum.
JxW(qp) * kernel.template computeQpJacobian<Derived>(j, qp, datum);
101 for (
unsigned int i = ib; i < ie; ++i)
102 local_ke[i - ib] +=
value *
_test(datum, i, qp);
105 for (
unsigned int i = ib; i < ie; ++i)
112 template <
typename Derived>
119 template <
typename Derived>
122 const unsigned int qp,
KOKKOS_FUNCTION Real computeQpResidual(const unsigned int qp, AssemblyDatum &datum) const
KOKKOS_FUNCTION unsigned int num_local_threads() const
Get the number of local threads.
const InputParameters & parameters() const
Get the parameters of the object.
const VariableTestValue _test
Current test function.
KOKKOS_FUNCTION unsigned int jvar() const
Get the coupled variable number.
KOKKOS_FUNCTION unsigned int n_jdofs() const
Get the number of local DOFs for the coupled variable.
The base class for Kokkos time-derivative kernels.
KOKKOS_FUNCTION Real computeQpJacobianDummy(const unsigned int, const unsigned int, AssemblyDatum &) const
const Scalar< const Real > _du_dot_du
Derivative of u_dot with respect to u.
KokkosTimeDerivative(const InputParameters ¶meters)
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)
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.
static auto defaultJacobian()
KOKKOS_FUNCTION unsigned int n_idofs() const
Get the number of local DOFs.
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.
KOKKOS_FUNCTION unsigned int local_thread_id() const
Get the current local thread ID.
KOKKOS_FUNCTION Real computeQpJacobian(const unsigned int j, const unsigned int qp, AssemblyDatum &datum) const
KOKKOS_FUNCTION void computeJacobianInternal(const Derived &kernel, AssemblyDatum &datum) const
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.
The Kokkos object that holds thread-private data in the parallel operations of Kokkos kernels...
KOKKOS_FUNCTION Real JxW(const unsigned int qp)
Get the transformed Jacobian weight.
const VariablePhiValue _phi
Current shape function.
auto min(const L &left, const R &right)
ContiguousElementID id
Contiguous element ID.
KOKKOS_FUNCTION void computeResidualInternal(const Derived &kernel, AssemblyDatum &datum) const