Merge pull request #4787 from atgeirr/fix-guard-and-warning

Fix guard and warning
This commit is contained in:
Arne Morten Kvarving
2023-08-09 12:49:30 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,7 @@
copyright holders.
*/
#ifndef EWOMS_GENERIC_ECL_PROBLEM_IMPL_HH
#define EWOMS_GENERIC_ECL_PROBLEM_IPML_HH
#define EWOMS_GENERIC_ECL_PROBLEM_IMPL_HH
#include <ebos/eclgenericproblem.hh>
@@ -484,7 +484,7 @@ getResidualMeasureValue(const WellState& well_state,
assert(int(residuals.size()) == numWellEq + 1);
const double rate_tolerance = tolerance_wells;
int count = 0;
[[maybe_unused]] int count = 0;
double sum = 0;
for (int eq_idx = 0; eq_idx < numWellEq - 1; ++eq_idx) {
if (residuals[eq_idx] > rate_tolerance) {