https://mooseframework.inl.gov
Public Member Functions | List of all members
Moose::Kokkos::VariablePhiValue Class Reference

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

#include <KokkosVariableValue.h>

Public Member Functions

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

Detailed Description

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

Definition at line 25 of file KokkosVariableValue.h.

Member Function Documentation

◆ operator()()

KOKKOS_FUNCTION Real Moose::Kokkos::VariablePhiValue::operator() ( ResidualDatum datum,
unsigned int  i,
unsigned int  qp 
) const
inline

Get the current shape function.

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

Definition at line 35 of file KokkosVariableValue.h.

36  {
37  auto & elem = datum.elem();
38  auto side = datum.side();
39  auto fe = datum.jfe();
40 
41  return side == libMesh::invalid_uint
42  ? datum.assembly().getPhi(elem.subdomain, elem.type, fe)(i, qp)
43  : datum.assembly().getPhiFace(elem.subdomain, elem.type, fe)(side)(i, qp);
44  }
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.
const unsigned int invalid_uint
KOKKOS_FUNCTION const auto & getPhiFace(ContiguousSubdomainID subdomain, unsigned int elem_type, unsigned int fe_type) const
Get the face 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:90
KOKKOS_FUNCTION const Assembly & assembly() const
Get the Kokkos assembly.
Definition: KokkosDatum.h:68
KOKKOS_FUNCTION const ElementInfo & elem() const
Get the element information object.
Definition: KokkosDatum.h:80
KOKKOS_FUNCTION unsigned int jfe() const
Get the coupled variable FE type ID.
Definition: KokkosDatum.h:317

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