mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fix for gas-water system, set gas saturation
This commit is contained in:
parent
abd775fe21
commit
a217974f9d
@ -96,8 +96,10 @@ class BlackOilIntensiveQuantities
|
||||
enum { dimWorld = GridView::dimensionworld };
|
||||
enum { compositionSwitchIdx = Indices::compositionSwitchIdx };
|
||||
|
||||
static const bool compositionSwitchEnabled = Indices::gasEnabled;
|
||||
static const bool compositionSwitchEnabled = Indices::compositionSwitchIdx >= 0;
|
||||
static const bool waterEnabled = Indices::waterEnabled;
|
||||
static const bool gasEnabled = Indices::gasEnabled;
|
||||
static const bool oilEnabled = Indices::oilEnabled;
|
||||
|
||||
using Toolbox = MathToolbox<Evaluation>;
|
||||
using DimMatrix = Dune::FieldMatrix<Scalar, dimWorld, dimWorld>;
|
||||
@ -167,6 +169,9 @@ public:
|
||||
Sg = 0.0;
|
||||
}
|
||||
}
|
||||
if (gasEnabled && waterEnabled && !oilEnabled) {
|
||||
Sg = 1.0 - Sw;
|
||||
}
|
||||
|
||||
Valgrind::CheckDefined(Sg);
|
||||
Valgrind::CheckDefined(Sw);
|
||||
|
Loading…
Reference in New Issue
Block a user