GEOSX
|
#include <StencilBase.hpp>
Public Member Functions | |
virtual | ~StencilBase ()=default |
Destructor. | |
StencilBase (StencilBase const &)=default | |
Constructor. | |
StencilBase (StencilBase &&)=default | |
Move constructor. | |
virtual void | reserve (localIndex const size) |
Reserve the size of the stencil. More... | |
virtual void | move (LvArray::MemorySpace const space) |
Move the data arrays associated with the stencil to a specified memory space. More... | |
virtual void | add (localIndex const numPts, localIndex const *const elementRegionIndices, localIndex const *const elementSubRegionIndices, localIndex const *const elementIndices, real64 const *const weights, localIndex const connectorIndex)=0 |
Add an entry to the stencil. More... | |
virtual bool | zero (localIndex const connectorIndex) |
Zero weights for a stencil entry. More... | |
virtual localIndex | size () const =0 |
Give the number of stencil entries. More... | |
void | setName (string const &name) |
Set the name used in data movement logging callbacks. More... | |
LEAFCLASSTRAITS::IndexContainerViewConstType | getElementRegionIndices () const |
Const access to the element regions indices. More... | |
LEAFCLASSTRAITS::IndexContainerViewConstType | getElementSubRegionIndices () const |
Const access to the element subregions indices. More... | |
LEAFCLASSTRAITS::IndexContainerViewConstType | getElementIndices () const |
Const access to the element indices. More... | |
LEAFCLASSTRAITS::WeightContainerViewConstType | getWeights () const |
Const access to the stencil weights. More... | |
Protected Attributes | |
LEAFCLASSTRAITS::IndexContainerType | m_elementRegionIndices |
The container for the element region indices for each point in each stencil. | |
LEAFCLASSTRAITS::IndexContainerType | m_elementSubRegionIndices |
The container for the element sub region indices for each point in each stencil. | |
LEAFCLASSTRAITS::IndexContainerType | m_elementIndices |
The container for the element indices for each point in each stencil. | |
LEAFCLASSTRAITS::WeightContainerType | m_weights |
The container for the weights for each point in each stencil. | |
map< localIndex, localIndex > | m_connectorIndices |
The map that provides the stencil index given the index of the underlying connector object. | |
Provides management of the interior stencil points when using Two-Point flux approximation.
Definition at line 34 of file StencilBase.hpp.
|
pure virtual |
Add an entry to the stencil.
[in] | numPts | The number of points in the stencil entry |
[in] | elementRegionIndices | The element region indices for each point in the stencil entry |
[in] | elementSubRegionIndices | The element sub-region indices for each point in the stencil entry |
[in] | elementIndices | The element indices for each point in the stencil entry |
[in] | weights | The weights each point in the stencil entry |
[in] | connectorIndex | The index of the connector element that the stencil acts across |
Implemented in geosx::FaceElementStencil, geosx::BoundaryStencil, geosx::CellElementStencilMPFA, and geosx::CellElementStencilTPFA.
|
inline |
Const access to the element indices.
Definition at line 130 of file StencilBase.hpp.
|
inline |
Const access to the element regions indices.
Definition at line 118 of file StencilBase.hpp.
|
inline |
Const access to the element subregions indices.
Definition at line 124 of file StencilBase.hpp.
|
inline |
Const access to the stencil weights.
Definition at line 136 of file StencilBase.hpp.
|
virtual |
Move the data arrays associated with the stencil to a specified memory space.
space | The target memory space. |
Reimplemented in geosx::FaceElementStencil.
Definition at line 191 of file StencilBase.hpp.
|
virtual |
Reserve the size of the stencil.
[in] | size | the size of the stencil to reserve |
Reimplemented in geosx::CellElementStencilMPFA.
Definition at line 159 of file StencilBase.hpp.
void geosx::StencilBase< LEAFCLASSTRAITS, LEAFCLASS >::setName | ( | string const & | name | ) |
Set the name used in data movement logging callbacks.
name | the name prefix for the stencil's data arrays |
Definition at line 182 of file StencilBase.hpp.
|
pure virtual |
Give the number of stencil entries.
Implemented in geosx::FaceElementStencil, geosx::BoundaryStencil, geosx::CellElementStencilMPFA, and geosx::CellElementStencilTPFA.
|
virtual |
Zero weights for a stencil entry.
[in] | connectorIndex | The index of the connector element that the stencil acts across for which the weights are to be zero. |
Definition at line 169 of file StencilBase.hpp.