|
GEOS
|
This namespace contains helper functions that facilitate access into the assortment of maps used by GEOSX mesh object managers (e.g. array2d/array1d(array1d)/ArrayOfArrays/ArrayOfSets, etc.) More...
Functions | |
| template<typename T , int USD> | |
| GEOS_HOST_DEVICE localIndex | size0 (arrayView2d< T, USD > const &map) |
| template<typename T > | |
| GEOS_HOST_DEVICE localIndex | size0 (ArrayOfArraysView< T > const &map) |
| template<typename T > | |
| GEOS_HOST_DEVICE localIndex | size0 (ArrayOfSetsView< T > const &map) |
| template<typename POLICY , typename VIEW_TYPE > | |
| ArrayOfArrays< std::remove_const_t< typename VIEW_TYPE::ValueType > > | transposeIndexMap (VIEW_TYPE const &srcMap, localIndex const dstSize, localIndex const overAlloc=0) |
| Transposes an input map (array2d, ArrayOfArrays or ArrayOfSets) More... | |
| template<typename POLICY > | |
| void | transformCellBlockToRegionMap (arrayView2d< localIndex const > const &blockToSubRegion, ToCellRelation< ArrayOfArrays< localIndex > > const &srcMap, ToElementRelation< ArrayOfArrays< localIndex > > &dstMap) |
| Convert ToCellRelation into ToElementRelation. More... | |
| template<typename POLICY , typename PERM1 , typename PERM2 > | |
| void | transformCellBlockToRegionMap (arrayView2d< localIndex const > const &blockToSubRegion, ToCellRelation< array2d< localIndex, PERM1 > > const &srcMap, ToElementRelation< array2d< localIndex, PERM2 > > &dstMap) |
| Convert ToCellRelation into ToElementRelation. More... | |
This namespace contains helper functions that facilitate access into the assortment of maps used by GEOSX mesh object managers (e.g. array2d/array1d(array1d)/ArrayOfArrays/ArrayOfSets, etc.)
|
inline |
| T | type of map element |
| map | reference to the map |
Definition at line 59 of file MeshMapUtilities.hpp.
|
inline |
| T | type of map element |
| map | reference to the map |
Definition at line 71 of file MeshMapUtilities.hpp.
|
inline |
| T | type of map element |
| USD | unit-stride dimension of the map |
| map | reference to the map |
Definition at line 47 of file MeshMapUtilities.hpp.
| void geos::meshMapUtilities::transformCellBlockToRegionMap | ( | arrayView2d< localIndex const > const & | blockToSubRegion, |
| ToCellRelation< array2d< localIndex, PERM1 > > const & | srcMap, | ||
| ToElementRelation< array2d< localIndex, PERM2 > > & | dstMap | ||
| ) |
Convert ToCellRelation into ToElementRelation.
| POLICY | execution policy |
| blockToSubRegion | a map from cell blocks to region/subregion pairs |
| srcMap | source map (object-to-cells) |
| dstMap | target map (object-to-elements) |
Definition at line 173 of file MeshMapUtilities.hpp.
| void geos::meshMapUtilities::transformCellBlockToRegionMap | ( | arrayView2d< localIndex const > const & | blockToSubRegion, |
| ToCellRelation< ArrayOfArrays< localIndex > > const & | srcMap, | ||
| ToElementRelation< ArrayOfArrays< localIndex > > & | dstMap | ||
| ) |
Convert ToCellRelation into ToElementRelation.
| POLICY | execution policy |
| blockToSubRegion | a map from cell blocks to region/subregion pairs |
| srcMap | source map (object-to-cells) |
| dstMap | target map (object-to-elements) |
Definition at line 128 of file MeshMapUtilities.hpp.
| ArrayOfArrays< std::remove_const_t< typename VIEW_TYPE::ValueType > > geos::meshMapUtilities::transposeIndexMap | ( | VIEW_TYPE const & | srcMap, |
| localIndex const | dstSize, | ||
| localIndex const | overAlloc = 0 |
||
| ) |
Transposes an input map (array2d, ArrayOfArrays or ArrayOfSets)
| POLICY | execution policy to use |
| VIEW_TYPE | type of view of the source map |
| srcMap | the source map |
| dstSize | number of target objects ("cols" of srcMap) |
| overAlloc | overallocation (extra capacity per row) for resulting map |
srcMap stored as ArrayOfArrays (most general form) Definition at line 89 of file MeshMapUtilities.hpp.