Skip to content

Commit

Permalink
The eclipse gride preprocessing is not allowed to deactivate cells
Browse files Browse the repository at this point in the history
  • Loading branch information
joakim-hove committed Oct 3, 2019
1 parent 19e8aa5 commit 630b3b3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions opm/grid/cpgrid/processEclipseFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,14 @@ namespace cpgrid
// Make the grid.
processEclipseFormat(g, nnc_cells, z_tolerance, false, turn_normals);
}

{
const auto& ecl_actnum = ecl_grid.getACTNUM();
for (std::size_t g = 0; g < ecl_grid.getCartesianSize(); g++) {
if (ecl_actnum[g] != g.actnum[g])
throw std::logic_error("Cells have been deactivated in the grid processing - should not happen");
}
}
}
#endif // #if HAVE_ECL_INPUT

Expand Down

0 comments on commit 630b3b3

Please sign in to comment.