diff --git a/opm/simulators/wells/MultisegmentWell.hpp b/opm/simulators/wells/MultisegmentWell.hpp index 43ac035bf..18b69e899 100644 --- a/opm/simulators/wells/MultisegmentWell.hpp +++ b/opm/simulators/wells/MultisegmentWell.hpp @@ -66,7 +66,7 @@ namespace Opm static const int GTotal = 0; static const int WFrac = gasoil? -1000: 1; static const int GFrac = gasoil? 1 : 2; - static const int SPres = gasoil? 2 : 3; + static const int SPres = numEq; /// the number of well equations // TODO: it should have a more general strategy for it static const int numWellEq = getPropValue() ? numEq : numEq + 1;