The Kokkos wrapper classes for MOOSE-like variable value access. More...
#include <KokkosVariableValue.h>
Public Member Functions | |
| VariableValue ()=default | |
| Default constructor. More... | |
| VariableValue (Variable var, bool dof=false) | |
| Constructor. More... | |
| VariableValue (const MooseVariableBase &var, const TagName &tag=Moose::SOLUTION_TAG, bool dof=false) | |
| 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... | |
| bool | _dof = false |
| Flag whether DOF values are requested. More... | |
The Kokkos wrapper classes for MOOSE-like variable value access.
Definition at line 120 of file KokkosVariableValue.h.
|
default |
Default constructor.
|
inline |
Constructor.
| var | The Kokkos variable |
| dof | Whether to get DOF values |
Definition at line 132 of file KokkosVariableValue.h.
|
inline |
Constructor.
| var | The MOOSE variable |
| tag | The vector tag name |
| dof | Whether to get DOF values |
Definition at line 139 of file KokkosVariableValue.h.
|
inline |
Get whether the variable was coupled.
Definition at line 150 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 218 of file KokkosVariableValue.h.
|
private |
Flag whether DOF values are requested.
Definition at line 169 of file KokkosVariableValue.h.
Referenced by operator()().
|
private |
Coupled Kokkos variable.
Definition at line 165 of file KokkosVariableValue.h.
Referenced by operator bool(), and operator()().
1.8.14