From 87c4471f9623707ba4b467854c61f2aae9967dc0 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Thu, 25 Apr 2024 09:26:31 +0200 Subject: [PATCH] Fixes uninitialized variable warning with gcc-12 --- opm/simulators/wells/StandardWell_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/simulators/wells/StandardWell_impl.hpp b/opm/simulators/wells/StandardWell_impl.hpp index dd19107bf..7a6af94c7 100644 --- a/opm/simulators/wells/StandardWell_impl.hpp +++ b/opm/simulators/wells/StandardWell_impl.hpp @@ -2337,7 +2337,7 @@ namespace Opm { const int max_iter = this->param_.max_inner_iter_wells_; int it = 0; - bool converged; + bool converged = false; bool relax_convergence = false; this->regularize_ = false; const auto& summary_state = simulator.vanguard().summaryState();