67 template <
typename Derived>
81 template <
typename Derived>
87 "Default computeQpOffDiagJacobian() should never be called. Make sure you properly " 88 "redefined this method in your class without typos.");
99 template <
typename Derived>
103 return &NodalBC::computeQpJacobian<Derived>;
105 template <
typename Derived>
108 return &NodalBC::computeQpOffDiagJacobian<Derived>;
115 template <
typename Derived>
117 KOKKOS_FUNCTION
void operator()(ResidualLoop,
const ThreadID tid,
const Derived & bc)
const;
118 template <
typename Derived>
119 KOKKOS_FUNCTION
void operator()(JacobianLoop,
const ThreadID tid,
const Derived & bc)
const;
120 template <
typename Derived>
132 template <
typename Derived>
144 Real local_re = bc.template computeQpResidual<Derived>(0, datum);
149 template <
typename Derived>
161 Real local_ke = bc.template computeQpJacobian<Derived>(0, datum);
167 template <
typename Derived>
180 Real local_ke = bc.template computeQpOffDiagJacobian<Derived>(jvar, 0, datum);
KOKKOS_FUNCTION Real computeQpJacobian(const unsigned int, AssemblyDatum &) const
Default methods to prevent compile errors even when these methods were not defined in the derived cla...
KOKKOS_FUNCTION unsigned int sys(unsigned int comp=0) const
Get the system number of a component.
KOKKOS_FUNCTION void operator()(ResidualLoop, const ThreadID tid, const Derived &bc) const
The parallel computation entry functions called by Kokkos.
NodalBC(const InputParameters ¶meters)
Constructor.
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.
static InputParameters validParams()
static auto defaultOffDiagJacobian()
const InputParameters & parameters() const
Get the parameters of the object.
KOKKOS_FUNCTION void accumulateTaggedNodalResidual(const bool add, const Real local_re, const ContiguousNodeID node, const unsigned int comp=0) const
Accumulate or set local nodal residual contribution to tagged vectors.
Thread _thread
Kokkos thread object.
KOKKOS_FUNCTION Real computeQpOffDiagJacobian(const unsigned int, const unsigned int, AssemblyDatum &) const
Compute off-diagonal Jacobian contribution on a node.
static auto defaultJacobian()
Functions used to check if users have overriden the hook methods, whose calculations can be skipped w...
virtual void computeResidual() override
Dispatch residual calculation.
KOKKOS_FUNCTION const System & kokkosSystem(unsigned int sys) const
Get the const reference of a Kokkos system.
The Kokkos wrapper classes for MOOSE-like variable value access.
The base class for Kokkos nodal boundary conditions.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const VariableValue _u
Current solution at nodes.
The Kokkos object that holds thread-private data in the parallel operations of Kokkos kernels...
Variable _kokkos_var
Kokkos variable.
virtual void computeJacobian() override
Dispatch diagonal and off-diagonal Jacobian calculation.
KOKKOS_FUNCTION unsigned int var(unsigned int comp=0) const
Get the variable number of a component.
KOKKOS_FUNCTION const auto & getCoupling(unsigned int var) const
Get the list of off-diagonal coupled variable numbers of a variable.
KOKKOS_FUNCTION void accumulateTaggedNodalMatrix(const bool add, const Real local_ke, const ContiguousNodeID node, const unsigned int jvar, const unsigned int comp=0) const
Accumulate or set local nodal Jacobian contribution to tagged matrices.
The base class for a user to derive their own Kokkos nodal boundary conditions.
KOKKOS_FUNCTION const Array< System > & kokkosSystems() const
Get the const reference of the Kokkos systems.