mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-06 14:16:45 -05:00
Update to shared_ptr-less parser interface.
This commit is contained in:
1 parent
144318b567
commit
ad6b77cc15
4 files changed
+14
-14
No files matched your search
@@ -36,13 +36,13 @@ try
|
||||
|
||||
// Read input file
|
||||
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::Parser parser;
|
||||
Opm::Deck deck = parser.parseFile(file_name , parseContext);
|
||||
Opm::EclipseState eclipseState(deck , parseContext);
|
||||
std::cout << "Done!" << std::endl;
|
||||
|
||||
// Setup grid
|
||||
GridManager grid(*eclipseState->getInputGrid());
|
||||
GridManager grid(eclipseState.getInputGrid());
|
||||
|
||||
// Define rock and fluid properties
|
||||
IncompPropertiesFromDeck incomp_properties(deck, eclipseState, *grid.c_grid());
|
||||
|
||||
Reference in new issue
Block a user