mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-23 09:46:24 -06:00
Add StrictParsing commandline option
This commit is contained in:
parent
18e64d0e7e
commit
c223b4f4d4
@ -65,6 +65,7 @@ NEW_PROP_TAG(Scalar);
|
||||
NEW_PROP_TAG(EclDeckFileName);
|
||||
NEW_PROP_TAG(OutputDir);
|
||||
NEW_PROP_TAG(EnableOpmRstFile);
|
||||
NEW_PROP_TAG(EclStrictParsing);
|
||||
NEW_PROP_TAG(EclOutputInterval);
|
||||
NEW_PROP_TAG(IgnoreKeywords);
|
||||
|
||||
@ -72,6 +73,7 @@ SET_STRING_PROP(EclBaseVanguard, IgnoreKeywords, "");
|
||||
SET_STRING_PROP(EclBaseVanguard, EclDeckFileName, "");
|
||||
SET_INT_PROP(EclBaseVanguard, EclOutputInterval, -1); // use the deck-provided value
|
||||
SET_BOOL_PROP(EclBaseVanguard, EnableOpmRstFile, true);
|
||||
SET_BOOL_PROP(EclBaseVanguard, EclStrictParsing, false);
|
||||
|
||||
END_PROPERTIES
|
||||
|
||||
@ -111,6 +113,8 @@ public:
|
||||
"Include OPM-specific keywords in the ECL restart file to enable restart of OPM simulators from these files");
|
||||
EWOMS_REGISTER_PARAM(TypeTag, std::string, IgnoreKeywords,
|
||||
"List of Eclipse keywords which should be ignored. As a ':' separated string.");
|
||||
EWOMS_REGISTER_PARAM(TypeTag, bool, EclStrictParsing,
|
||||
"Use strict mode for parsing - all errors are collected before the applicaton exists.");
|
||||
}
|
||||
|
||||
/*!
|
||||
@ -228,6 +232,9 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
if (EWOMS_GET_PARAM(TypeTag, bool , EclStrictParsing))
|
||||
parseContext.update(Opm::InputError::DELAYED_EXIT1);
|
||||
|
||||
if (!externalDeck_) {
|
||||
if (myRank == 0)
|
||||
std::cout << "Reading the deck file '" << fileName << "'" << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user