The Kokkos wrapper classes for MOOSE-like variable value access. More...
#include <KokkosVariableValue.h>
Public Member Functions | |
| VariableValueTempl ()=default | |
| Default constructor. More... | |
| VariableValueTempl (Variable var, bool dof=false) | |
| Constructor. More... | |
| VariableValueTempl (const MooseVariableFieldBase &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 auto | operator() (Datum &datum, unsigned int idx, unsigned int comp=0) const |
| Get the current variable value. More... | |
| KOKKOS_FUNCTION const Variable & | variable () const |
| Get the Kokkos variable. More... | |
| VariableValueTempl (const std::vector< const MooseVariableFieldBase *> &vars, const TagName &tag=Moose::SOLUTION_TAG, bool dof=false) | |
| Constructor. More... | |
| VariableValueTempl (const std::vector< MooseVariableFieldBase *> &vars, const TagName &tag=Moose::SOLUTION_TAG, bool dof=false) | |
Private Types | |
| using | real_type = std::conditional_t< is_ad, ADReal, Real > |
Private Attributes | |
| Variable | _var |
| Coupled Kokkos variable. More... | |
| Array< Real > | _seed |
| Derivative seed of each component for AD. More... | |
| bool | _dof = false |
| Flag whether DOF values are requested. More... | |
| VariableValueTempl (const VariableValueTempl< is_ad > &object) | |
| Copy constructor for parallel dispatch. More... | |
| VariableValueTempl< is_ad > & | operator= (const VariableValueTempl< is_ad > &object) |
| Copy assignment operator. More... | |
| KOKKOS_FUNCTION auto | operator() (AssemblyDatum &datum, unsigned int idx, unsigned int comp=0) const |
| Get the current variable value. More... | |
| KOKKOS_FUNCTION auto | get (Datum &datum, unsigned int idx, unsigned int comp=0, Real seed=0) const |
| Get the current variable value. More... | |
The Kokkos wrapper classes for MOOSE-like variable value access.
Definition at line 125 of file KokkosVariableValue.h.
|
private |
Definition at line 127 of file KokkosVariableValue.h.
|
default |
Default constructor.
|
inline |
Constructor.
| var | The Kokkos variable |
| dof | Whether to get DOF values |
Definition at line 139 of file KokkosVariableValue.h.
|
inline |
Constructor.
| var | The MOOSE variable |
| tag | The vector tag name |
| dof | Whether to get DOF values |
Definition at line 146 of file KokkosVariableValue.h.
|
inline |
Constructor.
| vars | The MOOSE variables |
| tag | The vector tag name |
| dof | Whether to get DOF values |
Definition at line 159 of file KokkosVariableValue.h.
|
inline |
Definition at line 165 of file KokkosVariableValue.h.
| Moose::Kokkos::VariableValueTempl< is_ad >::VariableValueTempl | ( | const VariableValueTempl< is_ad > & | object | ) |
Copy constructor for parallel dispatch.
Definition at line 243 of file KokkosVariableValue.h.
|
private |
Get the current variable value.
| datum | The Datum object of the current thread |
| idx | The local quadrature point or DOF index |
| comp | The variable component |
| seed | The derivative seed (only meaningful for AD) |
Definition at line 289 of file KokkosVariableValue.h.
|
inline |
Get whether the variable was coupled.
Definition at line 186 of file KokkosVariableValue.h.
|
inline |
Get the current variable value.
| datum | The Datum object of the current thread |
| idx | The local quadrature point or DOF index |
| comp | The variable component |
Definition at line 195 of file KokkosVariableValue.h.
| KOKKOS_FUNCTION auto Moose::Kokkos::VariableValueTempl< is_ad >::operator() | ( | AssemblyDatum & | datum, |
| unsigned int | idx, | ||
| unsigned int | comp = 0 |
||
| ) | const |
Get the current variable value.
| datum | The AssemblyDatum object of the current thread |
| idx | The local quadrature point or DOF index |
| comp | The variable component |
Definition at line 272 of file KokkosVariableValue.h.
| VariableValueTempl< is_ad > & Moose::Kokkos::VariableValueTempl< is_ad >::operator= | ( | const VariableValueTempl< is_ad > & | object | ) |
Copy assignment operator.
Definition at line 262 of file KokkosVariableValue.h.
|
inline |
Get the Kokkos variable.
Definition at line 214 of file KokkosVariableValue.h.
Referenced by KokkosExtraIDIntegralVectorPostprocessor::execute(), KokkosNodalMaxValueId::reduce(), KokkosNodalExtremeValue::reduce(), KokkosNodalSum::reduce(), and KokkosExtraIDIntegralVectorPostprocessor::reduce().
|
private |
Flag whether DOF values are requested.
Definition at line 239 of file KokkosVariableValue.h.
|
private |
Derivative seed of each component for AD.
Definition at line 235 of file KokkosVariableValue.h.
Referenced by Moose::Kokkos::VariableValueTempl< is_ad >::VariableValueTempl().
|
private |
Coupled Kokkos variable.
Definition at line 231 of file KokkosVariableValue.h.
Referenced by Moose::Kokkos::VariableValueTempl< is_ad >::operator bool(), Moose::Kokkos::VariableValueTempl< is_ad >::variable(), and Moose::Kokkos::VariableValueTempl< is_ad >::VariableValueTempl().
1.8.14