From 09793464305a7816082f3f40b905fdf6f4fa58aa Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Wed, 22 Oct 2014 13:40:31 +0200 Subject: [PATCH] Remove the check if porv is present in the Eclipsestate. The porv is computed if needed and the Eclipsestate will return false on this test before it is called. Tested on Norne --- examples/sim_fibo_ad.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/sim_fibo_ad.cpp b/examples/sim_fibo_ad.cpp index 0ec165d14..1a0fb3358 100644 --- a/examples/sim_fibo_ad.cpp +++ b/examples/sim_fibo_ad.cpp @@ -129,10 +129,7 @@ try } // Grid init - std::vector porv; - if (eclipseState->hasDoubleGridProperty("PORV")) { - porv = eclipseState->getDoubleGridProperty("PORV")->getData(); - } + std::vector porv = eclipseState->getDoubleGridProperty("PORV")->getData(); grid.reset(new GridManager(eclipseState->getEclipseGrid(), porv)); auto &cGrid = *grid->c_grid(); const PhaseUsage pu = Opm::phaseUsageFromDeck(deck);