GEOS
|
Provides management of the interior stencil points when using Two-Point flux approximation. More...
#include <StencilBase.hpp>
Public Member Functions | |
virtual | ~StencilBase ()=default |
Destructor. | |
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... | |
TRAITS::IndexContainerViewConstType | getElementRegionIndices () const |
Const access to the element regions indices. More... | |
TRAITS::IndexContainerViewConstType | getElementSubRegionIndices () const |
Const access to the element subregions indices. More... | |
TRAITS::IndexContainerViewConstType | getElementIndices () const |
Const access to the element indices. More... | |
TRAITS::WeightContainerViewConstType | getWeights () const |
Const access to the stencil weights. More... | |
Protected Attributes | |
TRAITS::IndexContainerType | m_elementRegionIndices |
The container for the element region indices for each point in each stencil. | |
TRAITS::IndexContainerType | m_elementSubRegionIndices |
The container for the element sub region indices for each point in each stencil. | |
TRAITS::IndexContainerType | m_elementIndices |
The container for the element indices for each point in each stencil. | |
TRAITS::WeightContainerType | m_weights |
The container for the weights for each point in each stencil. | |
unordered_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.
TRAITS | the traits class describing properties of the stencil |
LEAFCLASS | derived type for CRTP |
Definition at line 151 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 geos::CellElementStencilMPFA, geos::SurfaceElementStencil, geos::FaceElementToCellStencil, geos::EmbeddedSurfaceToCellStencil, geos::CellElementStencilTPFA, and geos::BoundaryStencil.
|
inline |
Const access to the element indices.
Definition at line 232 of file StencilBase.hpp.
|
inline |
Const access to the element regions indices.
Definition at line 218 of file StencilBase.hpp.
|
inline |
Const access to the element subregions indices.
Definition at line 225 of file StencilBase.hpp.
|
inline |
Const access to the stencil weights.
Definition at line 239 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 geos::SurfaceElementStencil, geos::FaceElementToCellStencil, and geos::EmbeddedSurfaceToCellStencil.
Definition at line 294 of file StencilBase.hpp.
|
virtual |
Reserve the size of the stencil.
[in] | size | the size of the stencil to reserve |
Reimplemented in geos::FaceElementToCellStencil, geos::CellElementStencilTPFA, and geos::CellElementStencilMPFA.
Definition at line 262 of file StencilBase.hpp.
void geos::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 285 of file StencilBase.hpp.
|
pure virtual |
Give the number of stencil entries.
Implemented in geos::SurfaceElementStencil, geos::FaceElementToCellStencil, geos::EmbeddedSurfaceToCellStencil, geos::CellElementStencilTPFA, geos::CellElementStencilMPFA, and geos::BoundaryStencil.
|
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 272 of file StencilBase.hpp.