GEOS
|
#include <AverageOverQuadraturePointsKernel.hpp>
Classes | |
struct | StackVariables |
Kernel variables allocated on the stack. More... | |
Public Types | |
using | Base = AverageOverQuadraturePointsBase< SUBREGION_TYPE, FE_TYPE > |
Alias for the base class;. | |
Public Member Functions | |
AverageOverQuadraturePoints1D (NodeManager &nodeManager, EdgeManager const &edgeManager, FaceManager const &faceManager, SUBREGION_TYPE const &elementSubRegion, FE_TYPE const &finiteElementSpace, arrayView2d< real64 const > const property, arrayView1d< real64 > const averageProperty) | |
Constructor for the class. More... | |
GEOS_HOST_DEVICE void | setup (localIndex const k, StackVariables &stack) const |
Performs the setup phase for the kernel. More... | |
GEOS_HOST_DEVICE void | quadraturePointKernel (localIndex const k, localIndex const q, StackVariables &stack) const |
Increment the average property with the contribution of the property at this quadrature point. More... | |
Public Member Functions inherited from geos::AverageOverQuadraturePointsBase< SUBREGION_TYPE, FE_TYPE > | |
AverageOverQuadraturePointsBase (NodeManager &nodeManager, EdgeManager const &edgeManager, FaceManager const &faceManager, SUBREGION_TYPE const &elementSubRegion, FE_TYPE const &finiteElementSpace) | |
Constructor for the class. More... | |
GEOS_HOST_DEVICE void | setup (localIndex const k, StackVariables &stack) const |
Performs the setup phase for the kernel. More... | |
Static Public Member Functions | |
template<typename POLICY , typename KERNEL_TYPE > | |
static void | kernelLaunch (localIndex const numElems, KERNEL_TYPE const &kernelComponent) |
Launch the kernel over the elements in the subRegion. More... | |
Public Attributes | |
arrayView1d< real64 const > const | m_elementVolume |
The volume of the elements. | |
Protected Attributes | |
arrayView2d< real64 const > const | m_property |
The property living on quadrature points. | |
arrayView1d< real64 > const | m_averageProperty |
The average property. | |
Protected Attributes inherited from geos::AverageOverQuadraturePointsBase< SUBREGION_TYPE, FE_TYPE > | |
FE_TYPE const & | m_finiteElementSpace |
traits::ViewTypeConst< typename SUBREGION_TYPE::NodeMapType::base_type > const | m_elemsToNodes |
The element to nodes map. | |
arrayView2d< real64 const, nodes::REFERENCE_POSITION_USD > const | m_X |
The reference position of the nodes. | |
arrayView1d< real64 const > const | m_elementVolume |
The volume of the elements. | |
FE_TYPE::template MeshData< SUBREGION_TYPE > | m_meshData |
Data structure containing mesh data used to setup the finite element. | |
SUBREGION_TYPE | the subRegion type |
FE_TYPE | the finite element type |
Definition at line 140 of file AverageOverQuadraturePointsKernel.hpp.
|
inline |
Constructor for the class.
nodeManager | the node manager |
edgeManager | the edge manager |
faceManager | the face manager |
elementSubRegion | the element subRegion |
finiteElementSpace | the finite element space |
property | the property at quadrature points |
averageProperty | the property averaged over quadrature points |
Definition at line 162 of file AverageOverQuadraturePointsKernel.hpp.
|
inlinestatic |
Launch the kernel over the elements in the subRegion.
POLICY | the kernel policy |
KERNEL_TYPE | the type of kernel |
numElems | the number of elements in the subRegion |
kernelComponent | the kernel component |
Definition at line 222 of file AverageOverQuadraturePointsKernel.hpp.
|
inline |
Increment the average property with the contribution of the property at this quadrature point.
k | The element index |
q | The quadrature point index |
stack | The StackVariables object that hold the stack variables. |
Definition at line 204 of file AverageOverQuadraturePointsKernel.hpp.
|
inline |
Performs the setup phase for the kernel.
k | The element index. |
stack | The StackVariable object that hold the stack variables. |
Definition at line 190 of file AverageOverQuadraturePointsKernel.hpp.