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; saturationsOld[FluidSystem::oilPhaseIdx] = oilSaturationOld;
} }
for (unsigned phaseIdx = 0; phaseIdx < FluidSystem::numPhases; ++ phaseIdx) { for (unsigned phaseIdx = 0; phaseIdx < FluidSystem::numPhases; ++ phaseIdx) {
Scalar tmp = saturationsNew[phaseIdx] - saturationsOld[phaseIdx]; Scalar tmpSat = saturationsNew[phaseIdx] - saturationsOld[phaseIdx];
resultDelta += tmp*tmp; resultDelta += tmpSat*tmpSat;
resultDenom += saturationsNew[phaseIdx]*saturationsNew[phaseIdx]; resultDenom += saturationsNew[phaseIdx]*saturationsNew[phaseIdx];
assert(std::isfinite(resultDelta)); assert(std::isfinite(resultDelta));
assert(std::isfinite(resultDenom)); assert(std::isfinite(resultDenom));

View File

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