mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fix for compilation issue of opm-models/tests/reservoir_blackoil_vcfv.cc
This commit is contained in:
parent
1623d8dbbf
commit
e9b94a1e3e
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user