From 2630522d7f8b02860486cc412df84ed324342da2 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Wed, 24 May 2023 12:39:24 +0200 Subject: [PATCH] avoid unused variable warning with NDEBUG --- opm/simulators/wells/WellInterface_impl.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opm/simulators/wells/WellInterface_impl.hpp b/opm/simulators/wells/WellInterface_impl.hpp index c9bcdbf4f..0d0c6482f 100644 --- a/opm/simulators/wells/WellInterface_impl.hpp +++ b/opm/simulators/wells/WellInterface_impl.hpp @@ -630,8 +630,7 @@ namespace Opm DeferredLogger& deferred_logger) { const auto& well_name = this->name(); - const auto& summary_state = ebos_simulator.vanguard().summaryState(); - assert(this->wellHasTHPConstraints(summary_state)); + assert(this->wellHasTHPConstraints(ebos_simulator.vanguard().summaryState())); const auto& schedule = ebos_simulator.vanguard().schedule(); auto report_step_idx = ebos_simulator.episodeIndex(); const auto& glo = schedule.glo(report_step_idx);