mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
Merge pull request #4787 from atgeirr/fix-guard-and-warning
Fix guard and warning
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user