19 #ifndef OPM_CREATE_GLOBAL_CELL_ARRAY_HPP
20 #define OPM_CREATE_GLOBAL_CELL_ARRAY_HPP
33 int numCells = Opm::UgGridHelpers::numCells(grid);
34 dest.resize(numCells);
35 const auto& globalCell = Opm::UgGridHelpers::globalCell(grid);
36 std::vector<int> compressedToCartesianIdx(numCells);
37 for (
int cellIdx = 0; cellIdx < numCells; ++cellIdx) {
39 dest[cellIdx] = globalCell[cellIdx];
42 dest[cellIdx] = cellIdx;
Definition: AdditionalObjectDeleter.hpp:22
void createGlobalCellArray(const Grid &grid, std::vector< int > &dest)
Create a mapping from a global cell index of a grid to the logically Cartesian index of the ECL deck...
Definition: createGlobalCellArray.hpp:31