diff --git a/opm/upscaling/RelPermUtils.cpp b/opm/upscaling/RelPermUtils.cpp index ae907de..9f0cd0a 100644 --- a/opm/upscaling/RelPermUtils.cpp +++ b/opm/upscaling/RelPermUtils.cpp @@ -410,7 +410,8 @@ void RelPermUpscaleHelper::sanityCheckInput(const Opm::Deck& deck, poros = deck.getKeyword().getSIDoubleData(); perms[0] = deck.getKeyword().getSIDoubleData(); - EclipseGrid(deck).exportZCORN(zcorns); + EclipseGrid eg(deck); + zcorns = eg.getZCORN(); // Load anisotropic (only diagonal supported) input if present in grid if (deck.hasKeyword() && deck.hasKeyword()) {