Forward and reverse mappings between cells and regions/partitions (e.g., the ECLIPSE-style 'SATNUM', 'PVTNUM', or 'EQUILNUM' arrays).
More...
#include <RegionMapping.hpp>
|
typedef Region::value_type | RegionId |
| Type of forward (cell-to-region) mapping result.
|
|
typedef Region::size_type | CellId |
| Type of reverse (region-to-cell) mapping (element) result.
|
|
typedef std::vector< CellId >::const_iterator | CellIter |
| Type of reverse region-to-cell range bounds and iterators.
|
|
using | Range = iterator_range<CellIter> |
|
template<class Region = std::vector<int>>
class Opm::RegionMapping< Region >
Forward and reverse mappings between cells and regions/partitions (e.g., the ECLIPSE-style 'SATNUM', 'PVTNUM', or 'EQUILNUM' arrays).
- Template Parameters
-
Region | Type of a forward region mapping. Expected to provide indexed access through operator[]() as well as inner types 'value_type', 'size_type', and 'const_iterator'. |
◆ RegionId
template<class Region = std::vector<int>>
Type of forward (cell-to-region) mapping result.
Expected to be an integer.
◆ RegionMapping()
template<class Region = std::vector<int>>
Constructor.
- Parameters
-
[in] | reg | Forward region mapping, restricted to active cells only. |
◆ cells()
template<class Region = std::vector<int>>
Extract active cells in particular region.
- Parameters
-
- Returns
- Range of active cells in region
r
. Empty if r
is not an active region.
◆ region()
template<class Region = std::vector<int>>
Compute region number of given active cell.
- Parameters
-
- Returns
- Region to which
c
belongs.
The documentation for this class was generated from the following file: