mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-22 09:16:27 -06:00
Merge pull request #908 from jakobtorben/initialize_water_saturation_for_RSW
initialize water saturation for gas dissolved in water
This commit is contained in:
commit
55608d9407
@ -584,6 +584,8 @@ public:
|
||||
sw = (*this)[waterSwitchIdx];
|
||||
if (primaryVarsMeaningGas() == GasMeaning::Sg)
|
||||
sg = (*this)[compositionSwitchIdx];
|
||||
if (primaryVarsMeaningWater() == WaterMeaning::Rsw)
|
||||
sw = 1.0;
|
||||
|
||||
if (primaryVarsMeaningGas() == GasMeaning::Disabled && gasEnabled)
|
||||
sg = 1.0 - sw; // water + gas case
|
||||
|
Loading…
Reference in New Issue
Block a user