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

This commit is contained in:
Robert Kloefkorn
2017-06-23 10:45:53 +02:00
parent 2aada96d8c
commit 7699ed59db

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) {