mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #1024 from atgeirr/accept-missing-dims-keyword
Warn instead of throw when missing DIMS keyword.
This commit is contained in:
commit
7b17c7f1b6
@ -498,7 +498,8 @@ namespace Opm
|
|||||||
|
|
||||||
// Create Deck and EclipseState.
|
// Create Deck and EclipseState.
|
||||||
try {
|
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) );
|
deck_ = std::make_shared< Deck >( parser.parseFile(deck_filename, parseContext) );
|
||||||
checkDeck(*deck_, parser);
|
checkDeck(*deck_, parser);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user