Update to new parserMode interface

This commit is contained in:
Tor Harald Sandve 2015-08-14 10:59:25 +02:00
parent 332ded52e8
commit 86afb1bbf6

View File

@ -214,10 +214,9 @@ try
Opm::OpmLog::addBackend( "COUNTER" , counterLog ); Opm::OpmLog::addBackend( "COUNTER" , counterLog );
} }
Opm::ParseMode parseMode;
Opm::DeckConstPtr deck; Opm::DeckConstPtr deck;
std::shared_ptr<EclipseState> eclipseState; std::shared_ptr<EclipseState> eclipseState;
parseMode.randomSlash = InputError::IGNORE; Opm::ParseMode parseMode({{ ParseMode::PARSE_RANDOM_SLASH , InputError::IGNORE }});
try { try {
deck = parser->parseFile(deck_filename, parseMode); deck = parser->parseFile(deck_filename, parseMode);
Opm::checkDeck(deck); Opm::checkDeck(deck);