mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 02:30:18 -06:00
Fixes unused variable warning in standard wells.
Only occurs when compiling with -DNDEBUG since the body of the for-loop is an assert using the loop variable. Loop is now deactivated.
This commit is contained in:
parent
1777fc5a03
commit
7e5c810125
@ -985,9 +985,11 @@ namespace Opm
|
||||
|
||||
updateExtraPrimaryVariables(dwells);
|
||||
|
||||
#ifndef NDEBUG
|
||||
for (double v : primary_variables_) {
|
||||
assert(Opm::isfinite(v));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -1329,9 +1331,11 @@ namespace Opm
|
||||
break;
|
||||
} // end of switch
|
||||
|
||||
#ifndef NDEBUG
|
||||
for (double v : primary_variables_) {
|
||||
assert(Opm::isfinite(v));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -2623,9 +2627,11 @@ namespace Opm
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
for (double v : primary_variables_) {
|
||||
assert(Opm::isfinite(v));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user