Merge pull request #352 from andlaus/ebos_allow_no_fip

ebos: add possibility to disable the FIP output even if requested in the deck
This commit is contained in:
Atgeirr Flø Rasmussen
2018-07-31 11:32:15 +02:00
committed by GitHub
2 changed files with 20 additions and 0 deletions

View File

@@ -51,6 +51,9 @@ BEGIN_PROPERTIES
// create new type tag for the Ecl-output
NEW_TYPE_TAG(EclOutputBlackOil);
NEW_PROP_TAG(ForceDisableFluidInPlaceOutput);
SET_BOOL_PROP(EclOutputBlackOil, ForceDisableFluidInPlaceOutput, false);
END_PROPERTIES
@@ -126,6 +129,17 @@ public:
}
}
}
forceDisableFipOutput_ = EWOMS_GET_PARAM(TypeTag, bool, ForceDisableFluidInPlaceOutput);
}
/*!
* \brief Register all run-time parameters for the Vtk output module.
*/
static void registerParameters()
{
EWOMS_REGISTER_PARAM(TypeTag, bool, ForceDisableFluidInPlaceOutput,
"Do not print fluid-in-place values after each report step even if requested by the deck.");
}
/*!
@@ -1213,6 +1227,9 @@ private:
void outputRegionFluidInPlace_(const ScalarBuffer& oip, const ScalarBuffer& cip, const Scalar& pav, const int reg)
{
if (forceDisableFipOutput_)
return;
const Opm::UnitSystem& units = simulator_.vanguard().eclState().getUnits();
std::ostringstream ss;
if (!reg) {
@@ -1277,6 +1294,7 @@ private:
bool outputFipRestart_;
bool computeFip_;
bool forceDisableFipOutput_;
ScalarBuffer saturation_[numPhases];
ScalarBuffer oilPressure_;

View File

@@ -99,6 +99,8 @@ class EclWriter
public:
static void registerParameters()
{
EclOutputBlackOilModule<TypeTag>::registerParameters();
EWOMS_REGISTER_PARAM(TypeTag, bool, EnableAsyncEclOutput,
"Write the ECL-formated results in a non-blocking way (i.e., using a separate thread).");
}