https://mooseframework.inl.gov
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. More...
 

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  }
const unsigned int invalid_uint
KOKKOS_FUNCTION const auto & getVectorPhiFace(ContiguousSubdomainID subdomain, unsigned int elem_type, unsigned int fe_type) const
Get the face vector shape functions of a FE type for an element type and subdomain.
KOKKOS_FUNCTION unsigned int side() const
Get the side index.
Definition: KokkosDatum.h:79
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 unsigned int jfe() const
Get the coupled variable FE type ID.
Definition: KokkosDatum.h:666
KOKKOS_FUNCTION const Assembly & assembly() const
Get the Kokkos assembly.
Definition: KokkosDatum.h:274
KOKKOS_FUNCTION unsigned int ife() const
Get the variable FE type ID.
Definition: KokkosDatum.h:661
KOKKOS_FUNCTION const ElementInfo & elem() const
Get the element information object.
Definition: KokkosDatum.h:46

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