@@ -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
4344template <class TypeTag , int PVOffset>
4445class 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