From d0fc3eba778b134f1ffcae61f9f1cb643e7fb66f Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Mon, 27 Oct 2014 08:11:27 +0100 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. This commit applies the change to the sim_fibo_ad_cp.cpp --- examples/sim_fibo_ad_cp.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/sim_fibo_ad_cp.cpp b/examples/sim_fibo_ad_cp.cpp index 457e2ec15..5fda40ea3 100644 --- a/examples/sim_fibo_ad_cp.cpp +++ b/examples/sim_fibo_ad_cp.cpp @@ -156,10 +156,7 @@ try // Grid init grid.reset(new Dune::CpGrid()); - std::vector porv; - if (eclipseState->hasDoubleGridProperty("PORV")) { - porv = eclipseState->getDoubleGridProperty("PORV")->getData(); - } + std::vector porv = eclipseState->getDoubleGridProperty("PORV")->getData(); grid->processEclipseFormat(deck, false, false, false, porv); const PhaseUsage pu = Opm::phaseUsageFromDeck(deck);