From b766260db7e68cfe6fa104b6391a698f86546646 Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Wed, 12 Sep 2018 19:33:46 +0200 Subject: [PATCH] Add --opm-rst-file parameter --- ebos/eclbasevanguard.hh | 5 +++++ ebos/eclproblem.hh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ebos/eclbasevanguard.hh b/ebos/eclbasevanguard.hh index c6e83dd3e..3d9c5334a 100644 --- a/ebos/eclbasevanguard.hh +++ b/ebos/eclbasevanguard.hh @@ -63,10 +63,12 @@ NEW_PROP_TAG(EquilGrid); NEW_PROP_TAG(Scalar); NEW_PROP_TAG(EclDeckFileName); NEW_PROP_TAG(OutputDir); +NEW_PROP_TAG(EnableOpmRstFile); NEW_PROP_TAG(EclOutputInterval); SET_STRING_PROP(EclBaseVanguard, EclDeckFileName, ""); SET_INT_PROP(EclBaseVanguard, EclOutputInterval, -1); // use the deck-provided value +SET_BOOL_PROP(EclBaseVanguard, EnableOpmRstFile, false); END_PROPERTIES @@ -388,6 +390,9 @@ private: // specify the directory output. This is not a very nice mechanism because // the eclState is supposed to be immutable here, IMO. ioConfig.setOutputDir(outputDir); + + bool opmRSTFile = EWOMS_GET_PARAM(TypeTag, bool, EnableOpmRstFile); + ioConfig.setEclCompatibleRST( !opmRSTFile ); } Implementation& asImp_() diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index ce409297d..cdf01514d 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -257,6 +257,9 @@ SET_BOOL_PROP(EclBaseProblem, EclOutputDoublePrecision, false); // The default location for the ECL output files SET_STRING_PROP(EclBaseProblem, OutputDir, "."); +// Should we output OPM or ECL restart files +SET_BOOL_PROP(EclBaseProblem, EnableOpmRstFile, false); + // the cache for intensive quantities can be used for ECL problems and also yields a // decent speedup... SET_BOOL_PROP(EclBaseProblem, EnableIntensiveQuantityCache, true); @@ -390,6 +393,8 @@ public: "Tell the output writer to use double precision. Useful for 'perfect' restarts"); EWOMS_REGISTER_PARAM(TypeTag, unsigned, RestartWritingInterval, "The frequencies of which time steps are serialized to disk"); + EWOMS_REGISTER_PARAM(TypeTag, bool, EnableOpmRstFile, + "Should we include special OPM keywords to enable flow based restart"); } /*!