Merge pull request #4665 from akva2/avoid_unused_ndebug

avoid unused variable warning with NDEBUG
This commit is contained in:
Markus Blatt 2023-05-24 15:35:10 +02:00 committed by GitHub
commit 851e4b5731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);