mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-07 15:03:01 -06:00
Add --opm-rst-file parameter
This commit is contained in:
parent
49442af4cc
commit
b766260db7
@ -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_()
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user