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);