#include <KokkosVariableValue.h>
Public Member Functions | |
| VariableGradientTempl ()=default | |
| Default constructor. More... | |
| VariableGradientTempl (Variable var) | |
| Constructor. More... | |
| VariableGradientTempl (const MooseVariableFieldBase &var, const TagName &tag=Moose::SOLUTION_TAG) | |
| Constructor. More... | |
| KOKKOS_FUNCTION | operator bool () const |
| Get whether the variable was coupled. More... | |
| KOKKOS_FUNCTION auto | operator() (Datum &datum, unsigned int qp, unsigned int comp=0) const |
| Get the current variable gradient. More... | |
| KOKKOS_FUNCTION const Variable & | variable () const |
| Get the Kokkos variable. More... | |
| VariableGradientTempl (const std::vector< const MooseVariableFieldBase *> &vars, const TagName &tag=Moose::SOLUTION_TAG) | |
| Constructor. More... | |
| VariableGradientTempl (const std::vector< MooseVariableFieldBase *> &vars, const TagName &tag=Moose::SOLUTION_TAG) | |
Private Types | |
| using | real3_type = std::conditional_t< is_ad, ADReal3, Real3 > |
Private Attributes | |
| Variable | _var |
| Coupled Kokkos variable. More... | |
| Array< Real > | _seed |
| Derivative seed of each component for AD. More... | |
| VariableGradientTempl (const VariableGradientTempl< is_ad > &object) | |
| Copy constructor for parallel dispatch. More... | |
| VariableGradientTempl< is_ad > & | operator= (const VariableGradientTempl< is_ad > &object) |
| Copy assignment operator. More... | |
| KOKKOS_FUNCTION auto | operator() (AssemblyDatum &datum, unsigned int qp, unsigned int comp=0) const |
| Get the current variable gradient. More... | |
| KOKKOS_FUNCTION auto | get (Datum &datum, unsigned int qp, unsigned int comp=0, Real seed=0) const |
| Get the current variable gradient. More... | |
Definition at line 346 of file KokkosVariableValue.h.
|
private |
Definition at line 348 of file KokkosVariableValue.h.
|
default |
Default constructor.
|
inline |
Constructor.
| var | The Kokkos variable |
Definition at line 359 of file KokkosVariableValue.h.
|
inline |
Constructor.
| var | The MOOSE variable |
| tag | The vector tag name |
Definition at line 365 of file KokkosVariableValue.h.
|
inline |
Constructor.
| vars | The MOOSE variables |
| tag | The vector tag name |
Definition at line 376 of file KokkosVariableValue.h.
|
inline |
Definition at line 381 of file KokkosVariableValue.h.
| Moose::Kokkos::VariableGradientTempl< is_ad >::VariableGradientTempl | ( | const VariableGradientTempl< is_ad > & | object | ) |
Copy constructor for parallel dispatch.
Definition at line 454 of file KokkosVariableValue.h.
|
private |
Get the current variable gradient.
| datum | The Datum object of the current thread |
| qp | The local quadrature point index |
| comp | The variable component |
| seed | The derivative seed (only meaningful for AD) |
Definition at line 499 of file KokkosVariableValue.h.
|
inline |
Get whether the variable was coupled.
Definition at line 401 of file KokkosVariableValue.h.
|
inline |
Get the current variable gradient.
| datum | The Datum object of the current thread |
| qp | The local quadrature point index |
| comp | The variable component |
Definition at line 410 of file KokkosVariableValue.h.
| KOKKOS_FUNCTION auto Moose::Kokkos::VariableGradientTempl< is_ad >::operator() | ( | AssemblyDatum & | datum, |
| unsigned int | qp, | ||
| unsigned int | comp = 0 |
||
| ) | const |
Get the current variable gradient.
| datum | The AssemblyDatum object of the current thread |
| qp | The local quadrature point index |
| comp | The variable component |
Definition at line 482 of file KokkosVariableValue.h.
| VariableGradientTempl< is_ad > & Moose::Kokkos::VariableGradientTempl< is_ad >::operator= | ( | const VariableGradientTempl< is_ad > & | object | ) |
Copy assignment operator.
Definition at line 473 of file KokkosVariableValue.h.
|
inline |
Get the Kokkos variable.
Definition at line 429 of file KokkosVariableValue.h.
|
private |
Derivative seed of each component for AD.
Definition at line 450 of file KokkosVariableValue.h.
Referenced by Moose::Kokkos::VariableGradientTempl< is_ad >::VariableGradientTempl().
|
private |
Coupled Kokkos variable.
Definition at line 446 of file KokkosVariableValue.h.
Referenced by Moose::Kokkos::VariableGradientTempl< is_ad >::operator bool(), Moose::Kokkos::VariableGradientTempl< is_ad >::variable(), and Moose::Kokkos::VariableGradientTempl< is_ad >::VariableGradientTempl().
1.8.14