mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-07 15:03:01 -06:00
adapt to rename of waterSaturationIdx -> waterSwitchIdx
This commit is contained in:
parent
0c6d29a352
commit
a190668800
@ -465,7 +465,7 @@ namespace Opm {
|
||||
if (FluidSystem::phaseIsActive(FluidSystem::waterPhaseIdx) &&
|
||||
FluidSystem::numActivePhases() > 1 &&
|
||||
priVarsNew.primaryVarsMeaningWater() == PrimaryVariables::Sw) {
|
||||
saturationsNew[FluidSystem::waterPhaseIdx] = priVarsNew[Indices::waterSaturationIdx];
|
||||
saturationsNew[FluidSystem::waterPhaseIdx] = priVarsNew[Indices::waterSwitchIdx];
|
||||
oilSaturationNew -= saturationsNew[FluidSystem::waterPhaseIdx];
|
||||
}
|
||||
|
||||
@ -496,7 +496,7 @@ namespace Opm {
|
||||
|
||||
if (FluidSystem::numActivePhases() > 1) {
|
||||
if (priVarsOld.primaryVarsMeaningWater() == PrimaryVariables::Sw) {
|
||||
saturationsOld[FluidSystem::waterPhaseIdx] = priVarsOld[Indices::waterSaturationIdx];
|
||||
saturationsOld[FluidSystem::waterPhaseIdx] = priVarsOld[Indices::waterSwitchIdx];
|
||||
oilSaturationOld -= saturationsOld[FluidSystem::waterPhaseIdx];
|
||||
}
|
||||
|
||||
|
@ -73,7 +73,7 @@ protected:
|
||||
// GFrac 2 1 -1000 -1000 -1000
|
||||
// Spres 3 2 2 2 1
|
||||
|
||||
static constexpr bool has_water = (Indices::waterSaturationIdx >= 0);
|
||||
static constexpr bool has_water = (Indices::waterSwitchIdx >= 0);
|
||||
static constexpr bool has_gas = (Indices::compositionSwitchIdx >= 0);
|
||||
static constexpr bool has_oil = (Indices::numPhases - has_gas - has_water) > 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user