Silence warnings.

This commit is contained in:
Atgeirr Flø Rasmussen 2019-10-11 20:18:53 +02:00
parent 5211217c94
commit 8ef1958c18
2 changed files with 8 additions and 8 deletions

View File

@ -445,8 +445,8 @@ namespace Opm {
saturationsOld[FluidSystem::oilPhaseIdx] = oilSaturationOld;
}
for (unsigned phaseIdx = 0; phaseIdx < FluidSystem::numPhases; ++ phaseIdx) {
Scalar tmp = saturationsNew[phaseIdx] - saturationsOld[phaseIdx];
resultDelta += tmp*tmp;
Scalar tmpSat = saturationsNew[phaseIdx] - saturationsOld[phaseIdx];
resultDelta += tmpSat*tmpSat;
resultDenom += saturationsNew[phaseIdx]*saturationsNew[phaseIdx];
assert(std::isfinite(resultDelta));
assert(std::isfinite(resultDenom));

View File

@ -985,8 +985,8 @@ namespace Opm
updateExtraPrimaryVariables(dwells);
for (int i = 0; i < primary_variables_.size(); ++i) {
assert(Opm::isfinite(primary_variables_[i]));
for (double v : primary_variables_) {
assert(Opm::isfinite(v));
}
}
@ -1329,8 +1329,8 @@ namespace Opm
break;
} // end of switch
for (int i = 0; i < primary_variables_.size(); ++i) {
assert(Opm::isfinite(primary_variables_[i]));
for (double v : primary_variables_) {
assert(Opm::isfinite(v));
}
}
@ -2623,8 +2623,8 @@ namespace Opm
}
}
for (int i = 0; i < primary_variables_.size(); ++i) {
assert(Opm::isfinite(primary_variables_[i]));
for (double v : primary_variables_) {
assert(Opm::isfinite(v));
}
}