mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-01 12:06:54 -06:00
fix compositionSwitchEnabled specification
This commit is contained in:
parent
0f2ced8891
commit
a63e775155
@ -247,6 +247,7 @@ protected:
|
|||||||
static constexpr bool enableEnergy = Indices::temperatureIdx >= 0;
|
static constexpr bool enableEnergy = Indices::temperatureIdx >= 0;
|
||||||
static constexpr bool enableFoam = Indices::foamConcentrationIdx >= 0;
|
static constexpr bool enableFoam = Indices::foamConcentrationIdx >= 0;
|
||||||
static constexpr bool enableBrine = Indices::saltConcentrationIdx >= 0;
|
static constexpr bool enableBrine = Indices::saltConcentrationIdx >= 0;
|
||||||
|
static constexpr bool compositionSwitchEnabled = Indices::compositionSwitchIdx >= 0;
|
||||||
|
|
||||||
currentValue.checkDefined();
|
currentValue.checkDefined();
|
||||||
Valgrind::CheckDefined(update);
|
Valgrind::CheckDefined(update);
|
||||||
@ -263,7 +264,7 @@ protected:
|
|||||||
deltaSo = -deltaSw;
|
deltaSo = -deltaSw;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Indices::gasEnabled && currentValue.primaryVarsMeaning() == PrimaryVariables::Sw_po_Sg) {
|
if (compositionSwitchEnabled && currentValue.primaryVarsMeaning() == PrimaryVariables::Sw_po_Sg) {
|
||||||
deltaSg = update[Indices::compositionSwitchIdx];
|
deltaSg = update[Indices::compositionSwitchIdx];
|
||||||
deltaSo -= deltaSg;
|
deltaSo -= deltaSg;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user