remove warning due to unintialized values.

This commit is contained in:
Robert Kloefkorn 2015-08-06 14:55:49 +02:00
parent b7996ff5fe
commit 2c12246698

View File

@ -1018,7 +1018,8 @@ private:
// this assumes that capillary pressures only depend on the phase saturations
// and possibly on temperature. (this is always the case for ECL problems.)
Scalar pc[numPhases];
Scalar pc[numPhases] = { 0 };
const auto& matParams = materialLawParams_(dofIdx);
MaterialLaw::capillaryPressures(pc, matParams, dofFluidState);
Valgrind::CheckDefined(oilPressure);