diff --git a/opm/porsol/common/setupGridAndProps.hpp b/opm/porsol/common/setupGridAndProps.hpp index b4e83cb3..10dbc4b5 100644 --- a/opm/porsol/common/setupGridAndProps.hpp +++ b/opm/porsol/common/setupGridAndProps.hpp @@ -91,7 +91,7 @@ namespace Opm bool turn_normals = param.getDefault("turn_normals", false); { Opm::EclipseGrid inputGrid(deck); - grid.processEclipseFormat(inputGrid, periodic_extension, turn_normals, clip_z); + grid.processEclipseFormat(inputGrid, periodic_extension, turn_normals, clip_z, {}, {}, true); } // Save EGRID file in case we are writing ECL output. if (param.getDefault("output_ecl", false)) { @@ -161,7 +161,7 @@ namespace Opm { Opm::EclipseGrid eg(deck); const std::string* rl_ptr = (rock_list == "no_list") ? 0 : &rock_list; - grid.processEclipseFormat(eg, periodic_extension, turn_normals, clip_z); + grid.processEclipseFormat(eg, periodic_extension, turn_normals, clip_z, {}, {}, true); res_prop.init(deck, grid.globalCell(), perm_threshold, rl_ptr, use_jfunction_scaling, sigma, theta); if (unique_bids) { grid.setUniqueBoundaryIds(true); diff --git a/opm/upscaling/initCPGrid.cpp b/opm/upscaling/initCPGrid.cpp index 03639e45..475728c1 100644 --- a/opm/upscaling/initCPGrid.cpp +++ b/opm/upscaling/initCPGrid.cpp @@ -61,7 +61,13 @@ void Opm::initCPGrid(Dune::CpGrid& grid, const Opm::ParameterGroup& param) { Opm::Parser parser; auto deck = parser.parseFile(filename); Opm::EclipseGrid inputGrid(deck); - grid.processEclipseFormat(inputGrid, periodic_extension , turn_normals ); + grid.processEclipseFormat(inputGrid, + periodic_extension, + turn_normals, + false, // clip_z + {}, // porevolume + {}, // NNCFace + true); } else if (fileformat == "cartesian") { std::array dims = {{ param.getDefault("nx", 1), param.getDefault("ny", 1),