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