From 87599af8b8e5f7c9ed732045427f4c34878394d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Sun, 6 Jun 2021 16:58:42 +0200 Subject: [PATCH] Restore Debug Build Commit 6a21371b5 (PR #3344) removed 'num_perf_this_well' but did not make all requisite changes. Fix an accompanying 'assert' to restore builds that do not define 'NDEBUG'. --- opm/simulators/wells/WellState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/simulators/wells/WellState.cpp b/opm/simulators/wells/WellState.cpp index 4277ec920..eb5179e86 100644 --- a/opm/simulators/wells/WellState.cpp +++ b/opm/simulators/wells/WellState.cpp @@ -821,7 +821,7 @@ void WellState::initWellStateMSWell(const std::vector& wells_ecl, // for the seg_rates_, now it becomes a recursive solution procedure. { // make sure the information from wells_ecl consistent with wells - assert((n_activeperf == num_perf_this_well) && + assert((n_activeperf == this->wellMap().at(well_ecl.name())[2]) && "Inconsistent number of reservoir connections in well"); if (pu.phase_used[Gas]) {