mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-30 11:06:55 -06:00
Updated to use ParseMode.
This commit is contained in:
parent
761b9b4a41
commit
796a34bebe
@ -45,6 +45,7 @@
|
||||
#include <opm/core/simulator/SimulatorCompressibleTwophase.hpp>
|
||||
|
||||
#include <opm/parser/eclipse/Parser/Parser.hpp>
|
||||
#include <opm/parser/eclipse/Parser/ParseMode.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
|
||||
|
||||
|
||||
@ -97,9 +98,10 @@ try
|
||||
// int max_well_control_iterations = 0;
|
||||
double gravity[3] = { 0.0 };
|
||||
if (use_deck) {
|
||||
ParseMode parseMode;
|
||||
std::string deck_filename = param.get<std::string>("deck_filename");
|
||||
deck = parser->parseFile(deck_filename);
|
||||
eclipseState.reset(new EclipseState(deck));
|
||||
deck = parser->parseFile(deck_filename , parseMode);
|
||||
eclipseState.reset(new EclipseState(deck, parseMode));
|
||||
|
||||
// Grid init
|
||||
grid.reset(new GridManager(deck));
|
||||
|
Loading…
Reference in New Issue
Block a user