The Kokkos wrapper classes for MOOSE-like variable value access. More...
#include <KokkosVariableValue.h>
Public Member Functions | |
VariableValue (Variable var) | |
Constructor. More... | |
VariableValue (const MooseVariableBase &var, const TagName &tag=Moose::SOLUTION_TAG) | |
Constructor. More... | |
KOKKOS_FUNCTION | operator bool () const |
Get whether the variable was coupled. More... | |
KOKKOS_FUNCTION Real | operator() (Datum &datum, unsigned int qp, unsigned int comp=0) const |
Get the current variable value. More... | |
Private Attributes | |
Variable | _var |
Coupled Kokkos variable. More... | |
The Kokkos wrapper classes for MOOSE-like variable value access.
Definition at line 120 of file KokkosVariableValue.h.
|
inline |
Constructor.
var | The Kokkos variable |
Definition at line 127 of file KokkosVariableValue.h.
|
inline |
Constructor.
var | The MOOSE variable |
tag | The vector tag name |
Definition at line 133 of file KokkosVariableValue.h.
|
inline |
Get whether the variable was coupled.
Definition at line 142 of file KokkosVariableValue.h.
|
inline |
Get the current variable value.
datum | The Datum object of the current thread |
qp | The local quadrature-point index |
comp | The variable component |
Definition at line 151 of file KokkosVariableValue.h.
|
private |
Coupled Kokkos variable.
Definition at line 173 of file KokkosVariableValue.h.
Referenced by operator bool(), and operator()().