mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ebos: call Opm::checkDeck() after parsing
this catches at least some common issues with ECL decks.
This commit is contained in:
@@ -68,6 +68,7 @@ NEW_PROP_TAG(EnableOpmRstFile);
|
||||
NEW_PROP_TAG(EclStrictParsing);
|
||||
NEW_PROP_TAG(EclOutputInterval);
|
||||
NEW_PROP_TAG(IgnoreKeywords);
|
||||
NEW_PROP_TAG(EnableExperiments);
|
||||
|
||||
SET_STRING_PROP(EclBaseVanguard, IgnoreKeywords, "");
|
||||
SET_STRING_PROP(EclBaseVanguard, EclDeckFileName, "");
|
||||
@@ -92,6 +93,8 @@ class EclBaseVanguard : public BaseVanguard<TypeTag>
|
||||
typedef typename GET_PROP_TYPE(TypeTag, Scalar) Scalar;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, Simulator) Simulator;
|
||||
|
||||
enum { enableExperiments = GET_PROP_VALUE(TypeTag, EnableExperiments) };
|
||||
|
||||
public:
|
||||
typedef typename GET_PROP_TYPE(TypeTag, Grid) Grid;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, GridView) GridView;
|
||||
@@ -257,6 +260,9 @@ public:
|
||||
internalDeck_.reset(new Opm::Deck(parser.parseFile(fileName , parseContext, errorGuard)));
|
||||
internalEclState_.reset(new Opm::EclipseState(*internalDeck_, parseContext, errorGuard));
|
||||
|
||||
if (enableExperiments && myRank == 0)
|
||||
Opm::checkDeck(*internalDeck_, parser, parseContext, errorGuard);
|
||||
|
||||
deck_ = &(*internalDeck_);
|
||||
eclState_ = &(*internalEclState_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user