Fix the equation index for 2p oil-water simulations

This commit is contained in:
Tor Harald Sandve 2020-09-09 16:13:47 +02:00
parent bcc0a1be69
commit a323487b3b

View File

@ -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<TypeTag, Properties::EnablePolymer>() ? numEq : numEq + 1;