From 7699ed59dbb24248ad7da39f40eddf5142d4ceba Mon Sep 17 00:00:00 2001 From: Robert Kloefkorn Date: Fri, 23 Jun 2017 10:45:53 +0200 Subject: [PATCH] [cleanup] make code compile when Scalar is non POD type. --- ebos/eclpeacemanwell.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ebos/eclpeacemanwell.hh b/ebos/eclpeacemanwell.hh index 7394d848f..7a38aba9d 100644 --- a/ebos/eclpeacemanwell.hh +++ b/ebos/eclpeacemanwell.hh @@ -1352,6 +1352,9 @@ protected: computeVolumetricDofRates_(volumetricReservoirRates, bottomHolePressure, *tmp); std::array volumetricSurfaceRates; + for (unsigned phaseIdx = 0; phaseIdx < numPhases; ++phaseIdx) { + volumetricSurfaceRates[ phaseIdx ] = 0; + } computeSurfaceRates_(volumetricSurfaceRates, volumetricReservoirRates, *tmp); for (unsigned phaseIdx = 0; phaseIdx < numPhases; ++phaseIdx) {