From a6ec0bb59c40a20181705f8372dd0ad2c56fb0c4 Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Thu, 24 Apr 2014 11:47:01 +0200 Subject: [PATCH] Using the Parser::EclipseGrid to create GridManager --- examples/sim_fibo_ad.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/sim_fibo_ad.cpp b/examples/sim_fibo_ad.cpp index 890ca5bee..e27cd5d53 100644 --- a/examples/sim_fibo_ad.cpp +++ b/examples/sim_fibo_ad.cpp @@ -102,9 +102,10 @@ try Opm::ParserPtr newParser(new Opm::Parser() ); Opm::DeckConstPtr newParserDeck = newParser->parseFile( deck_filename ); + std::shared_ptr eclipseState(new EclipseState(newParserDeck)); // Grid init - grid.reset(new GridManager(newParserDeck)); + grid.reset(new GridManager(eclipseState->getEclipseGrid())); Opm::EclipseWriter outputWriter(param, newParserDeck, share_obj(*grid->c_grid())); // Rock and fluid init @@ -173,7 +174,6 @@ try WellStateFullyImplicitBlackoil well_state; Opm::TimeMapPtr timeMap(new Opm::TimeMap(newParserDeck)); SimulatorTimer simtimer; - std::shared_ptr eclipseState(new EclipseState(newParserDeck)); // initialize variables simtimer.init(timeMap);