avoid unused variable warning with NDEBUG

This commit is contained in:
Arne Morten Kvarving 2023-05-24 12:39:24 +02:00
parent cf169167d0
commit 2630522d7f

View File

@ -630,8 +630,7 @@ namespace Opm
DeferredLogger& deferred_logger) DeferredLogger& deferred_logger)
{ {
const auto& well_name = this->name(); const auto& well_name = this->name();
const auto& summary_state = ebos_simulator.vanguard().summaryState(); assert(this->wellHasTHPConstraints(ebos_simulator.vanguard().summaryState()));
assert(this->wellHasTHPConstraints(summary_state));
const auto& schedule = ebos_simulator.vanguard().schedule(); const auto& schedule = ebos_simulator.vanguard().schedule();
auto report_step_idx = ebos_simulator.episodeIndex(); auto report_step_idx = ebos_simulator.episodeIndex();
const auto& glo = schedule.glo(report_step_idx); const auto& glo = schedule.glo(report_step_idx);