StandardWellsDense: fix assert for the 2p case

this wasn't noticed earlier because it only bites in the water-oil
case and only if NDEBUG is not defined.
This commit is contained in:
Andreas Lauser
2016-12-12 14:26:34 +01:00
parent c7807a99a2
commit 34c4053c65

View File

@@ -264,7 +264,7 @@ enum WellVariablePositions {
// add trivial equation for 2p cases (Only support water + oil)
if (np == 2) {
assert((*active_)[ Gas ]);
assert(!(*active_)[ Gas ]);
invDuneD_[w][w][flowPhaseToEbosCompIdx(Gas)][flowToEbosPvIdx(Gas)] = 1.0;
}