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