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

The Kokkos wrapper classes for MOOSE-like shape function access. More...

#include <KokkosVariableValue.h>

Public Member Functions

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

Detailed Description

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

The Kokkos wrapper classes for MOOSE-like shape function access.

Definition at line 40 of file KokkosVariableValue.h.

Member Function Documentation

◆ operator()()

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

Get the current shape function.

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

Definition at line 50 of file KokkosVariableValue.h.

51 {
52 auto & elem = datum.elem();
53 auto side = datum.side();
54 auto fe = is_test ? datum.ife() : datum.jfe();
55
56 return side == libMesh::invalid_uint
57 ? datum.assembly().getPhi(elem.subdomain, elem.type, fe)(i, qp)
58 : datum.assembly().getPhiFace(elem.subdomain, elem.type, fe)(side)(i, qp);
59 }
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 & getPhi(ContiguousSubdomainID subdomain, unsigned int elem_type, unsigned int fe_type) const
Get the 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: