From a323487b3b71121f967eedf9282ac0cc245f3766 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Wed, 9 Sep 2020 16:13:47 +0200 Subject: [PATCH] Fix the equation index for 2p oil-water simulations --- opm/simulators/wells/MultisegmentWell.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;