mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -264,7 +264,7 @@ enum WellVariablePositions {
|
|||||||
|
|
||||||
// add trivial equation for 2p cases (Only support water + oil)
|
// add trivial equation for 2p cases (Only support water + oil)
|
||||||
if (np == 2) {
|
if (np == 2) {
|
||||||
assert((*active_)[ Gas ]);
|
assert(!(*active_)[ Gas ]);
|
||||||
invDuneD_[w][w][flowPhaseToEbosCompIdx(Gas)][flowToEbosPvIdx(Gas)] = 1.0;
|
invDuneD_[w][w][flowPhaseToEbosCompIdx(Gas)][flowToEbosPvIdx(Gas)] = 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user