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
commit 3b6d2a9e2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

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>

View File

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