GEOSX
|
#include <FluxStencil.hpp>
Classes | |
struct | Entry |
Structure containing the index and the weight of the single edge in the stencil graph. More... | |
Public Types | |
using | index_type = INDEX |
Alias for INDEX. | |
using | weight_type = WEIGHT |
Alias for WEIGHT. | |
Public Member Functions | |
FluxStencil (localIndex const numConn, localIndex const avgStencilSize) | |
Constructor. More... | |
localIndex | numConnections () const |
Return the size of the stencil collection (i.e. number of connections). More... | |
void | reserve (localIndex const numConn, localIndex const avgStencilSize) |
Resize the collection. More... | |
void | add (localIndex const numPts, INDEX const *const indices, WEIGHT const *const weights, localIndex const connectorIndex) |
Add data for one connection. More... | |
bool | zero (localIndex const connectorIndex) |
Zero out connections. More... | |
void | compress () |
Called after adding connections is done to compress the data. | |
ArrayOfArraysView< Entry const, true > | getConnections () const |
Return the connections. More... | |
Static Public Attributes | |
static localIndex constexpr | NUM_POINT_IN_FLUX = 2 |
Number of points the flux is between (normally 2). | |
static localIndex constexpr | MAX_STENCIL_SIZE = 18 |
Maximum number of points in a stencil (required to use static arrays in kernels). | |
Class representing a spatial discretization stencil.
Definition at line 35 of file FluxStencil.hpp.
|
explicit |
Constructor.
[in] | numConn | number of connections |
[in] | avgStencilSize | average stencil size |
Definition at line 131 of file FluxStencil.hpp.
void geosx::FluxStencil< INDEX, WEIGHT >::add | ( | localIndex const | numPts, |
INDEX const *const | indices, | ||
WEIGHT const *const | weights, | ||
localIndex const | connectorIndex | ||
) |
Add data for one connection.
[in] | numPts | number of points to be added |
[in] | indices | the INDEX array |
[in] | weights | the WEIGHT array |
[in] | connectorIndex | the connector index |
Definition at line 153 of file FluxStencil.hpp.
|
inline |
localIndex geosx::FluxStencil< INDEX, WEIGHT >::numConnections | ( | ) | const |
Return the size of the stencil collection (i.e. number of connections).
Definition at line 139 of file FluxStencil.hpp.
void geosx::FluxStencil< INDEX, WEIGHT >::reserve | ( | localIndex const | numConn, |
localIndex const | avgStencilSize | ||
) |
Resize the collection.
[in] | numConn | number of connections |
[in] | avgStencilSize | average stencil size |
Definition at line 145 of file FluxStencil.hpp.
bool geosx::FluxStencil< INDEX, WEIGHT >::zero | ( | localIndex const | connectorIndex | ) |
Zero out connections.
[in] | connectorIndex | the connector index |
Definition at line 171 of file FluxStencil.hpp.