transmult and initconfig are ref's, use ref for EclipseState constructor

This commit is contained in:
Pål Grønås Drange
2016-08-08 10:02:53 +02:00
committed by Andreas Lauser
parent 57548be345
commit 877bd70c54
3 changed files with 9 additions and 9 deletions

View File

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