Skip to content

Commit 4186d2a

Browse files
hnilGitPaean
authored andcommitted
changes to compile compositional with flowproblem
1 parent d9bf4ad commit 4186d2a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

opm/models/ptflash/flashindices.hh

+10-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ class FlashIndices
5050
using EnergyIndices = Opm::EnergyIndices<PVOffset + numComponents, enableEnergy>;
5151

5252
public:
53+
static constexpr bool waterEnabled = false;
54+
static constexpr bool gasEnabled = true;
55+
static constexpr bool oilEnabled = true;
56+
static constexpr bool waterPhaseIdx = -1;
57+
static constexpr bool waterGasIdx = 0;
58+
static constexpr bool waterOilIdx = 1;
59+
static constexpr bool compositionSwitchIdx = -1;
60+
static constexpr bool numPhases = 3;
61+
unsigned canonicalToActiveComponentIndex(unsigned solventCompIdx){return solventCompIdx;};
5362
//! number of equations/primary variables
5463
static const int numEq = numComponents + EnergyIndices::numEq_;
5564

@@ -60,7 +69,7 @@ public:
6069

6170
//! Index of the molefraction of the first component
6271
static constexpr int z0Idx = pressure0Idx + 1;
63-
72+
6473
// equation indices
6574

6675
//! Index of the mass conservation equation for the first

0 commit comments

Comments
 (0)