transmult and initconfig are ref's, use ref for EclipseState constructor
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -174,7 +174,7 @@ try
|
||||
Parser parser;
|
||||
ParseContext parseContext;
|
||||
DeckConstPtr deck = parser.parseFile(deck_filename , parseContext);
|
||||
EclipseStateConstPtr eclipseState = std::make_shared<EclipseState>(deck , parseContext);
|
||||
EclipseStateConstPtr eclipseState = std::make_shared<EclipseState>(*deck , parseContext);
|
||||
|
||||
// Grid init
|
||||
GridManager grid_manager(eclipseState->getInputGrid());
|
||||
|
||||
@@ -76,7 +76,7 @@ try
|
||||
{ ParseContext::INTERNAL_ERROR_UNINITIALIZED_THPRES, InputError::IGNORE}
|
||||
});
|
||||
Opm::DeckConstPtr deck(parser->parseFile(eclipseFilename, parseContext));
|
||||
eclState.reset(new EclipseState(deck, parseContext));
|
||||
eclState.reset(new EclipseState(*deck, parseContext));
|
||||
|
||||
GridManager gm(eclState->getInputGrid());
|
||||
const UnstructuredGrid& grid = *gm.c_grid();
|
||||
|
||||
@@ -38,7 +38,7 @@ try
|
||||
ParseContext parseContext;
|
||||
Opm::ParserPtr parser(new Opm::Parser());
|
||||
Opm::DeckConstPtr deck = parser->parseFile(file_name , parseContext);
|
||||
Opm::EclipseStateConstPtr eclipseState(new Opm::EclipseState(deck , parseContext));
|
||||
Opm::EclipseStateConstPtr eclipseState(new Opm::EclipseState(*deck , parseContext));
|
||||
std::cout << "Done!" << std::endl;
|
||||
|
||||
// Setup grid
|
||||
|
||||
Reference in New Issue
Block a user