My Project
|
Special purpose mapping facility to handle the output code's need to enumerate the active cells by columns (layer ID (K) cycling fastest, followed by J, followed by I) for aquifer connections. More...
#include <ActiveIndexByColumns.hpp>
Public Member Functions | |
bool | operator== (const ActiveIndexByColumns &rhs) const |
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. | |
Special purpose mapping facility to handle the output code's need to enumerate the active cells by columns (layer ID (K) cycling fastest, followed by J, followed by I) for aquifer connections.
|
explicit |
Create natural->columnar active cell index mapping.
[in] | numActive | Number of active cells in model. |
[in] | cartDims | Model's Cartesian dimensions. |
[in] | getIJK | Call-back routine for retrieving the Cartesian (I,J,K) tuple of an active cell index. |
|
inline |
Map active index in natural order to active index in columnar order.
The output code needs return type int
here, so use that instead of
.