Merge pull request #2058 from blattms/fix-unused-variable-wells

Fixes unused variable warning in standard wells.
This commit is contained in:
Atgeirr Flø Rasmussen 2019-10-15 10:07:18 +02:00 committed by GitHub
commit 11aeb82e8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -985,9 +985,11 @@ namespace Opm
updateExtraPrimaryVariables(dwells); updateExtraPrimaryVariables(dwells);
#ifndef NDEBUG
for (double v : primary_variables_) { for (double v : primary_variables_) {
assert(Opm::isfinite(v)); assert(Opm::isfinite(v));
} }
#endif
} }
@ -1329,9 +1331,11 @@ namespace Opm
break; break;
} // end of switch } // end of switch
#ifndef NDEBUG
for (double v : primary_variables_) { for (double v : primary_variables_) {
assert(Opm::isfinite(v)); assert(Opm::isfinite(v));
} }
#endif
} }
@ -2623,9 +2627,11 @@ namespace Opm
} }
} }
#ifndef NDEBUG
for (double v : primary_variables_) { for (double v : primary_variables_) {
assert(Opm::isfinite(v)); assert(Opm::isfinite(v));
} }
#endif
} }