https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Moose::Kokkos::VectorVariableShapeValue< is_test > Class Template Reference

#include <KokkosVariableValue.h>

Public Member Functions

KOKKOS_FUNCTION Real3 operator() (AssemblyDatum &datum, unsigned int i, unsigned int qp) const
 Get the current vector shape function.
 

Detailed Description

template<bool is_test>
class Moose::Kokkos::VectorVariableShapeValue< is_test >

Definition at line 114 of file KokkosVariableValue.h.

Member Function Documentation

◆ operator()()

template<bool is_test>
KOKKOS_FUNCTION Real3 Moose::Kokkos::VectorVariableShapeValue< is_test >::operator() ( AssemblyDatum datum,
unsigned int  i,
unsigned int  qp 
) const
inline

Get the current vector shape function.

Parameters
datumThe AssemblyDatum object of the current thread
iThe element-local DOF index
qpThe local quadrature point index
Returns
The vector shape function

Definition at line 124 of file KokkosVariableValue.h.

125 {
126 auto & elem = datum.elem();
127 auto side = datum.side();
128 auto fe = is_test ? datum.ife() : datum.jfe();
129
130 return side == libMesh::invalid_uint
131 ? datum.assembly().getVectorPhi(elem.subdomain, elem.type, fe)(i, qp)
132 : datum.assembly().getVectorPhiFace(elem.subdomain, elem.type, fe)(side)(i, qp);
133 }
KOKKOS_FUNCTION unsigned int jfe() const
Get the coupled variable FE type ID.
KOKKOS_FUNCTION unsigned int ife() const
Get the variable FE type ID.
KOKKOS_FUNCTION const auto & getVectorPhi(ContiguousSubdomainID subdomain, unsigned int elem_type, unsigned int fe_type) const
Get the vector shape functions of a FE type for an element type and subdomain.
KOKKOS_FUNCTION const Assembly & assembly() const
Get the Kokkos assembly.
KOKKOS_FUNCTION unsigned int side() const
Get the side index.
Definition KokkosDatum.h:79
KOKKOS_FUNCTION const ElementInfo & elem() const
Get the element information object.
Definition KokkosDatum.h:46
const unsigned int invalid_uint

The documentation for this class was generated from the following file: