fix for compilation issue of opm-models/tests/reservoir_blackoil_vcfv.cc

This commit is contained in:
Paul Egberts 2022-01-12 18:50:03 +01:00
parent 1623d8dbbf
commit e9b94a1e3e

View File

@ -291,7 +291,8 @@ public:
bool oilPresent = FluidSystem::phaseIsActive(oilPhaseIdx)?(fluidState.saturation(oilPhaseIdx) > 0.0):false;
static const Scalar thresholdWaterFilledCell = 1.0 - 1e-6;
bool onlyWater = FluidSystem::phaseIsActive(waterPhaseIdx)?(fluidState.saturation(waterPhaseIdx) > thresholdWaterFilledCell):false;
bool precipitatedSaltPresent = enableSaltPrecipitation?(fluidState.saltSaturation() > 0.0):false;
const auto& saltSaturation = BlackOil::getSaltSaturation_<FluidSystem, FluidState, Scalar>(fluidState, pvtRegionIdx_);
bool precipitatedSaltPresent = enableSaltPrecipitation?(saltSaturation > 0.0):false;
// deal with the primary variables for the energy extension
EnergyModule::assignPrimaryVars(*this, fluidState);
@ -374,10 +375,11 @@ public:
if (enableSaltPrecipitation) {
if (primaryVarsMeaningBrine() == Sp) {
(*this)[saltConcentrationIdx] = FsToolbox::value(fluidState.saltSaturation());
(*this)[saltConcentrationIdx] = FsToolbox::value(saltSaturation);
}
else {
(*this)[saltConcentrationIdx] = FsToolbox::value(fluidState.saltConcentration());
const auto& saltConcentration = BlackOil::getSaltConcentration_<FluidSystem, FluidState, Scalar>(fluidState, pvtRegionIdx_);
(*this)[saltConcentrationIdx] = FsToolbox::value(saltConcentration);
}
}