mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4787 from atgeirr/fix-guard-and-warning
Fix guard and warning
This commit is contained in:
commit
3b6d2a9e2f
@ -21,7 +21,7 @@
|
|||||||
copyright holders.
|
copyright holders.
|
||||||
*/
|
*/
|
||||||
#ifndef EWOMS_GENERIC_ECL_PROBLEM_IMPL_HH
|
#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>
|
#include <ebos/eclgenericproblem.hh>
|
||||||
|
|
||||||
|
@ -484,7 +484,7 @@ getResidualMeasureValue(const WellState& well_state,
|
|||||||
assert(int(residuals.size()) == numWellEq + 1);
|
assert(int(residuals.size()) == numWellEq + 1);
|
||||||
|
|
||||||
const double rate_tolerance = tolerance_wells;
|
const double rate_tolerance = tolerance_wells;
|
||||||
int count = 0;
|
[[maybe_unused]] int count = 0;
|
||||||
double sum = 0;
|
double sum = 0;
|
||||||
for (int eq_idx = 0; eq_idx < numWellEq - 1; ++eq_idx) {
|
for (int eq_idx = 0; eq_idx < numWellEq - 1; ++eq_idx) {
|
||||||
if (residuals[eq_idx] > rate_tolerance) {
|
if (residuals[eq_idx] > rate_tolerance) {
|
||||||
|
Loading…
Reference in New Issue
Block a user