From 34c4053c65c430dc8987de6cbf63281518890d1f Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Mon, 12 Dec 2016 14:26:34 +0100 Subject: [PATCH] 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. --- opm/autodiff/StandardWellsDense.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/autodiff/StandardWellsDense.hpp b/opm/autodiff/StandardWellsDense.hpp index c865713b4..5c76efb43 100644 --- a/opm/autodiff/StandardWellsDense.hpp +++ b/opm/autodiff/StandardWellsDense.hpp @@ -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; }