Opm::RegionMapping< Region > Class Template Reference
Detailed Descriptiontemplate<class Region = std::vector<int>>
|
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'. |
typedef Region::size_type Opm::RegionMapping< Region >::CellId |
Type of reverse (region-to-cell) mapping (element) result.
typedef std::vector<CellId>::const_iterator Opm::RegionMapping< Region >::CellIter |
Type of reverse region-to-cell range bounds and iterators.
typedef std::vector<CellId>::size_type Opm::RegionMapping< Region >::Pos |
typedef boost::iterator_range<CellIter> Opm::RegionMapping< Region >::Range |
typedef Region::value_type Opm::RegionMapping< Region >::RegionId |
Type of forward (cell-to-region) mapping result. Expected to be an integer.
|
inlineexplicit |
Constructor.
[in] | reg | Forward region mapping, restricted to active cells only. |
|
inline |
|
inline |
Extract active cells in particular region.
[in] | r | Region number |
r
. Empty if r
is not an active region.
|
inline |
Compute region number of given active cell.
[in] | c | Active cell |
c
belongs. References Opm::RegionMapping< Region >::c.
std::vector<RegionId> Opm::RegionMapping< Region >::active |
std::unordered_map<RegionId, Pos> Opm::RegionMapping< Region >::binid |
std::vector<CellId> Opm::RegionMapping< Region >::c |
Region cells
Referenced by Opm::RegionMapping< Region >::region().
std::vector<Pos> Opm::RegionMapping< Region >::p |
Region start pointers