44 template <
typename Derived>
51 template <
typename Derived>
57 "Default computeQpOffDiagJacobian() should never be called. Make sure you properly " 58 "redefined this method in your class without typos.");
68 template <
typename Derived>
72 return &VectorNodalBC::computeQpJacobian<Derived>;
74 template <
typename Derived>
77 return &VectorNodalBC::computeQpOffDiagJacobian<Derived>;
84 template <
typename Derived>
86 KOKKOS_FUNCTION
void operator()(ResidualLoop,
const ThreadID tid,
const Derived & bc)
const;
87 template <
typename Derived>
88 KOKKOS_FUNCTION
void operator()(JacobianLoop,
const ThreadID tid,
const Derived & bc)
const;
89 template <
typename Derived>
101 template <
typename Derived>
113 Real3 local_re = bc.template computeQpResidual<Derived>(0, datum);
115 for (
unsigned int comp = 0; comp <
_dimension; ++comp)
119 template <
typename Derived>
131 Real3 local_ke = bc.template computeQpJacobian<Derived>(0, datum);
133 for (
unsigned int comp = 0; comp <
_dimension; ++comp)
137 template <
typename Derived>
150 Real3 local_ke = bc.template computeQpOffDiagJacobian<Derived>(jvar, 0, datum);
152 for (
unsigned int comp = 0; comp <
_dimension; ++comp)
KOKKOS_FUNCTION unsigned int sys(unsigned int comp=0) const
Get the system number of a component.
KOKKOS_FUNCTION const Assembly & kokkosAssembly() const
Get the const reference of the Kokkos assembly.
KOKKOS_FUNCTION ContiguousNodeID kokkosBoundaryNodeID(Moose::Kokkos::ThreadID tid) const
Get the contiguous node ID this Kokkos thread is operating on.
KOKKOS_FUNCTION void operator()(ResidualLoop, const ThreadID tid, const Derived &bc) const
The parallel computation entry functions called by Kokkos.
const InputParameters & parameters() const
Get the parameters of the object.
Thread _thread
Kokkos thread object.
static auto defaultJacobian()
Functions used to check if users have overriden the hook methods, whose calculations can be skipped w...
KOKKOS_FUNCTION Real computeQpOffDiagJacobian(const unsigned int, const unsigned int, AssemblyDatum &) const
virtual void computeResidual() override
Dispatch residual calculation.
The base class for a user to derive their own Kokkos nodal boundary conditions on vector variables...
const VectorVariableValue _u
Current vector solution at nodes.
MOOSE_KOKKOS_INDEX_TYPE ThreadID
KOKKOS_FUNCTION void accumulateTaggedVectorNodalResidual(const bool add, const Real local_re, const ContiguousNodeID node, const unsigned int i) const
Accumulate or set local nodal residual contribution to tagged vectors for vector FE variables...
virtual void computeJacobian() override
Dispatch diagonal and off-diagonal Jacobian calculation.
VectorNodalBC(const InputParameters ¶meters)
Constructor.
The base class for Kokkos nodal boundary conditions.
KOKKOS_FUNCTION void accumulateTaggedVectorNodalMatrix(const bool add, const Real local_ke, const ContiguousNodeID node, const unsigned int i, const unsigned int j, const unsigned int jvar) const
Accumulate or set local nodal Jacobian contribution to tagged matrices for vector FE variables...
KOKKOS_FUNCTION Real3 computeQpJacobian(const unsigned int, AssemblyDatum &) const
Default methods to prevent compile errors even when these methods were not defined in the derived cla...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
The Kokkos object that holds thread-private data in the parallel operations of Kokkos kernels...
static InputParameters validParams()
Variable _kokkos_var
Kokkos variable.
KOKKOS_FUNCTION unsigned int var(unsigned int comp=0) const
Get the variable number of a component.
static auto defaultOffDiagJacobian()
const unsigned int _dimension
Mesh dimension.