Merge pull request #1024 from atgeirr/accept-missing-dims-keyword

Warn instead of throw when missing DIMS keyword.
This commit is contained in:
Atgeirr Flø Rasmussen 2017-01-16 08:56:51 +01:00 committed by GitHub
commit 7b17c7f1b6

View File

@ -498,7 +498,8 @@ namespace Opm
// Create Deck and EclipseState.
try {
ParseContext parseContext({{ ParseContext::PARSE_RANDOM_SLASH , InputError::IGNORE }});
ParseContext parseContext({ { ParseContext::PARSE_RANDOM_SLASH , InputError::IGNORE },
{ ParseContext::PARSE_MISSING_DIMS_KEYWORD, InputError::WARN } });
deck_ = std::make_shared< Deck >( parser.parseFile(deck_filename, parseContext) );
checkDeck(*deck_, parser);