mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 18:21:00 -06:00
Silence warnings.
This commit is contained in:
parent
5211217c94
commit
8ef1958c18
@ -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));
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user