52 init(variable, tag_name);
99 KOKKOS_FUNCTION
unsigned int var(
unsigned int comp = 0)
const {
return _var[comp]; }
105 KOKKOS_FUNCTION
unsigned int sys(
unsigned int comp = 0)
const {
return _sys[comp]; }
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.
::Moose::PassKey<::Coupleable > CoupleableKey
Variable(const MooseVariableBase &variable, const TagID tag)
Constructor Initialize the variable with a MOOSE variable and vector tag ID.
Array< Real > _default_value
Default value of each component when the variable is not coupled.
KOKKOS_FUNCTION bool coupled() const
Get whether the variable is coupled.
Variable(const MooseVariableBase &variable, const TagName &tag_name=Moose::SOLUTION_TAG)
Constructor Initialize the variable with a MOOSE variable and vector tag name.
Variable()=default
Default constructor.
KOKKOS_FUNCTION unsigned int components()
Get the number of components.
Array< unsigned int > _sys
System number of each component.
Interface for objects that needs coupling capabilities.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
bool _coupled
Whether the variable is coupled.
const TagID INVALID_TAG_ID
KOKKOS_FUNCTION Real value(unsigned int comp=0) const
Get the default value of a component.
The Kokkos variable object that carries the coupled variable and tag information. ...
void init(const MooseVariableBase &variable, const TagID tag)
Initialize the variable with a MOOSE variable and vector tag ID.
const TagName SOLUTION_TAG
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
KOKKOS_FUNCTION unsigned int var(unsigned int comp=0) const
Get the variable number of a component.
unsigned int _components
Number of components.
Array< unsigned int > _var
Variable number of each component.