@@ -40,6 +40,7 @@ namespace Opm {
40
40
*
41
41
* \tparam PVOffset The first index in a primary variable vector.
42
42
*/
43
+ // TODO: The indices class should handle whether phase is active, not the FluidSystem
43
44
template <class TypeTag , int PVOffset>
44
45
class FlashIndices
45
46
: public EnergyIndices<PVOffset + getPropValue<TypeTag, Properties::NumComponents>(),
@@ -53,11 +54,11 @@ public:
53
54
static constexpr bool waterEnabled = false ;
54
55
static constexpr bool gasEnabled = true ;
55
56
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 ;
61
62
unsigned canonicalToActiveComponentIndex (unsigned solventCompIdx){return solventCompIdx;};
62
63
// ! number of equations/primary variables
63
64
static const int numEq = numComponents + EnergyIndices::numEq_;
0 commit comments