[cleanup] make code compile when Scalar is non POD type.

This commit is contained in:
Robert Kloefkorn committed 2017-06-23 22:58:50 +02:00
1 parent 2aada96d8c
commit 7699ed59db
1 file changed
+3
+3
View File
@@ -1352,6 +1352,9 @@ protected:
computeVolumetricDofRates_<Scalar, Scalar>(volumetricReservoirRates, bottomHolePressure, *tmp);
std::array<Scalar, numPhases> volumetricSurfaceRates;
for (unsigned phaseIdx = 0; phaseIdx < numPhases; ++phaseIdx) {
volumetricSurfaceRates[ phaseIdx ] = 0;
}
computeSurfaceRates_(volumetricSurfaceRates, volumetricReservoirRates, *tmp);
for (unsigned phaseIdx = 0; phaseIdx < numPhases; ++phaseIdx) {