mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 18:21:00 -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 enableFoam = Indices::foamConcentrationIdx >= 0;
|
||||
static constexpr bool enableBrine = Indices::saltConcentrationIdx >= 0;
|
||||
static constexpr bool compositionSwitchEnabled = Indices::compositionSwitchIdx >= 0;
|
||||
|
||||
currentValue.checkDefined();
|
||||
Valgrind::CheckDefined(update);
|
||||
@ -263,7 +264,7 @@ protected:
|
||||
deltaSo = -deltaSw;
|
||||
}
|
||||
|
||||
if (Indices::gasEnabled && currentValue.primaryVarsMeaning() == PrimaryVariables::Sw_po_Sg) {
|
||||
if (compositionSwitchEnabled && currentValue.primaryVarsMeaning() == PrimaryVariables::Sw_po_Sg) {
|
||||
deltaSg = update[Indices::compositionSwitchIdx];
|
||||
deltaSo -= deltaSg;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user