mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
Bugfix: use soMax consistent with BlackoilIntensiveQuantities::update().
This commit is contained in:
@@ -690,7 +690,7 @@ public:
|
||||
if (sg < -eps && s > 0.0 && FluidSystem::enableDissolvedGas()) {
|
||||
const Scalar& po = (*this)[pressureSwitchIdx];
|
||||
setPrimaryVarsMeaningGas(GasMeaning::Rs);
|
||||
Scalar soMax = problem.maxOilSaturation(globalDofIdx);
|
||||
Scalar soMax = std::max(s, problem.maxOilSaturation(globalDofIdx));
|
||||
Scalar rsMax = problem.maxGasDissolutionFactor(/*timeIdx=*/0, globalDofIdx);
|
||||
Scalar rsSat = enableExtbo ? ExtboModule::rs(pvtRegionIndex(),
|
||||
po,
|
||||
|
||||
Reference in New Issue
Block a user