50 init(variable, tag_name);
58 Variable(
const std::vector<const MooseVariableFieldBase *> & variables,
const TagID tag)
74 Variable(
const std::vector<const MooseVariableFieldBase *> & variables,
78 init(variables, tag_name);
80 Variable(
const std::vector<MooseVariableFieldBase *> & variables,
83 init(variables, tag_name);
104 void init(
const std::vector<const MooseVariableFieldBase *> & variables,
const TagID tag);
106 void init(
const std::vector<MooseVariableFieldBase *> & variables,
const TagID tag);
113 void init(
const std::vector<const MooseVariableFieldBase *> & variables,
116 void init(
const std::vector<MooseVariableFieldBase *> & variables,
154 KOKKOS_FUNCTION
bool dot()
const {
return _dot; }
159 KOKKOS_FUNCTION
bool old()
const {
return _old; }
175 KOKKOS_FUNCTION
unsigned int var(
unsigned int comp = 0)
const {
return _var[comp]; }
181 KOKKOS_FUNCTION
unsigned int sys(
unsigned int comp = 0)
const {
return _sys[comp]; }
KOKKOS_FUNCTION bool old() const
Get whether the tag is old/older value.
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
bool _initialized
Whether the variable is initialized.
bool _nodal
Whether the variable is nodal.
Variable(const std::vector< MooseVariableFieldBase *> &variables, const TagID tag)
KOKKOS_FUNCTION bool initialized() const
Get whether the variable is initialized.
This class provides an interface for common operations on field variables of both FE and FV types wit...
Variable(const MooseVariableFieldBase &variable, const TagName &tag_name=Moose::SOLUTION_TAG)
Constructor Initialize the variable with a MOOSE variable and vector tag name.
KOKKOS_FUNCTION bool dot() const
Get whether the tag is time derivative.
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.
bool _old
Whether the tag is old/older value.
Variable()=default
Default constructor.
KOKKOS_FUNCTION unsigned int components()
Get the number of components.
KOKKOS_FUNCTION index_type size() const
Get the total array size.
void init(const MooseVariableFieldBase &variable, const TagID tag)
Initialize the variable with a MOOSE variable and vector tag ID.
Variable(const MooseVariableFieldBase &variable, const TagID tag)
Constructor Initialize the variable with a MOOSE variable and vector tag ID.
KOKKOS_FUNCTION bool nodal() const
Get whether the variable is nodal.
Array< unsigned int > _sys
System number of each component.
Interface for objects that needs coupling capabilities.
bool _dot
Whether the tag is time derivative.
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. ...
const MooseVariableFieldBase * mooseVar(unsigned int comp=0)
Get the MOOSE variable of a component.
const TagName SOLUTION_TAG
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.
Array< const MooseVariableFieldBase * > _moose_var
MOOSE variable of each component.
Variable(const std::vector< MooseVariableFieldBase *> &variables, const TagName &tag_name=Moose::SOLUTION_TAG)