24 template <
typename Derived>
27 template <
typename Derived>
41 template <
typename Derived>
49 auto elem = datum.
elem().
id;
51 for (
unsigned int i = 0; i < datum.
n_dofs(); ++i)
52 sys.getVectorDofValue(sys.getElemLocalDofIndex(elem, i, var), tag) =
_v(datum, i);
55 template <
typename Derived>
63 auto node = datum.
node();
65 sys.getVectorDofValue(sys.getNodeLocalDofIndex(node, 0, var), tag) =
_v(datum, 0);
KOKKOS_FUNCTION TagID tag() const
Get the vector tag ID.
KOKKOS_FUNCTION unsigned int sys(unsigned int comp=0) const
Get the system number of a component.
unsigned short _state
Variable used to specify state being copied.
KokkosCopyValueAux(const InputParameters ¶meters)
Class for stuff related to variables.
The base class for a user to derive their own Kokkos auxiliary kernels.
KOKKOS_FUNCTION void computeNodeInternal(const Derived &auxkernel, AssemblyDatum &datum) const
KOKKOS_FUNCTION void computeElementInternal(const Derived &auxkernel, AssemblyDatum &datum) const
const InputParameters & parameters() const
Get the parameters of the object.
Copies one variable onto an auxiliary variable.
Variable _kokkos_var
Kokkos variable.
const Moose::Kokkos::VariableValue _v
The variable value to copy from.
KOKKOS_FUNCTION const System & kokkosSystem(unsigned int sys) const
Get the const reference of a Kokkos system.
KOKKOS_FUNCTION ContiguousNodeID node() const
Get the contiguous node ID.
KOKKOS_FUNCTION const ElementInfo & elem() const
Get the element information object.
const MooseVariable & _source_variable
A reference to the variable to copy from.
The Kokkos object that holds thread-private data in the parallel operations of Kokkos kernels...
The Kokkos wrapper classes for MOOSE-like variable value access.
KOKKOS_FUNCTION unsigned int var(unsigned int comp=0) const
Get the variable number of a component.
KOKKOS_FUNCTION unsigned int n_dofs() const
Get the number of local DOFs.
static InputParameters validParams()
ContiguousElementID id
Contiguous element ID.