20#ifndef OPM_ACTIVE_INDEX_BY_COLUMNS_HPP
21#define OPM_ACTIVE_INDEX_BY_COLUMNS_HPP
50 const std::array<int, 3>& cartDims,
51 const std::function<std::array<int, 3>(
const std::size_t)>& getIJK);
59 assert ((naturalActiveIndex < this->natural2columnar_.size())
60 &&
"Natural active cell index out of bounds");
62 return this->natural2columnar_[naturalActiveIndex];
66 std::vector<int> natural2columnar_;
Special purpose mapping facility to handle the output code's need to enumerate the active cells by co...
Definition: ActiveIndexByColumns.hpp:39
ActiveIndexByColumns(const std::size_t numActive, const std::array< int, 3 > &cartDims, const std::function< std::array< int, 3 >(const std::size_t)> &getIJK)
Create natural->columnar active cell index mapping.
int getColumnarActiveIndex(const std::size_t naturalActiveIndex) const
Map active index in natural order to active index in columnar order.
Definition: ActiveIndexByColumns.hpp:57
About cell information and dimension: The actual grid information is held in a pointer to an ERT ecl_...
Definition: EclipseGrid.hpp:54
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
ActiveIndexByColumns buildColumnarActiveIndexMappingTables(const EclipseGrid &grid)
Build natural->columnar active cell index mapping from an EclipseGrid instance.