shared_ptr<EclipseGrid> -> const EclipseGrid&

This commit is contained in:
Joakim Hove 2016-08-31 10:02:24 +02:00 committed by Andreas Lauser
parent 877bd70c54
commit 39647c6ad3

View File

@ -92,7 +92,7 @@ try
Opm::DeckConstPtr deck = parser->parseFile(deck_filename , parseContext);
Opm::EclipseStateConstPtr eclipseState(new Opm::EclipseState(*deck, parseContext));
const double grav = param.getDefault("gravity", unit::gravity);
GridManager gm(eclipseState->getInputGrid());
GridManager gm(*eclipseState->getInputGrid());
const UnstructuredGrid& grid = *gm.c_grid();
BlackoilPropertiesFromDeck props(deck, eclipseState, grid, param);
warnIfUnusedParams(param);