Skip to content

Commit 81d1295

Browse files
committed
revise a little
1 parent 4b217a0 commit 81d1295

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

opm/models/ptflash/flashindices.hh

+6-5
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ namespace Opm {
4040
*
4141
* \tparam PVOffset The first index in a primary variable vector.
4242
*/
43+
// TODO: The indices class should handle whether phase is active, not the FluidSystem
4344
template <class TypeTag, int PVOffset>
4445
class FlashIndices
4546
: public EnergyIndices<PVOffset + getPropValue<TypeTag, Properties::NumComponents>(),
@@ -53,11 +54,11 @@ public:
5354
static constexpr bool waterEnabled = false;
5455
static constexpr bool gasEnabled = true;
5556
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;
57+
static constexpr int waterPhaseIdx = -1;
58+
// static constexpr int waterGasIdx = 0;
59+
// static constexpr int waterOilIdx = 1;
60+
static constexpr int compositionSwitchIdx = -1;
61+
static constexpr int numPhases = 2;
6162
unsigned canonicalToActiveComponentIndex(unsigned solventCompIdx){return solventCompIdx;};
6263
//! number of equations/primary variables
6364
static const int numEq = numComponents + EnergyIndices::numEq_;

0 commit comments

Comments
 (0)