[cleanup] remove two uninitialized warnings in SaturationProposFromDeck.

This commit is contained in:
Robert Kloefkorn 2017-06-07 13:19:21 +02:00
parent d504715caa
commit d058d8e380

View File

@ -103,7 +103,7 @@ namespace Opm
ExplicitArraysFluidState fluidState(phaseUsage_);
fluidState.setSaturationArray(s);
double relativePerms[BlackoilPhases::MaxNumPhases];
double relativePerms[BlackoilPhases::MaxNumPhases] = { 0 };
for (int i = 0; i < n; ++i) {
fluidState.setIndex(i);
const auto& params = materialLawManager_->materialLawParams(cells[i]);
@ -179,7 +179,7 @@ namespace Opm
ExplicitArraysFluidState fluidState(phaseUsage_);
fluidState.setSaturationArray(s);
double capillaryPressures[BlackoilPhases::MaxNumPhases];
double capillaryPressures[BlackoilPhases::MaxNumPhases] = { 0 };
for (int i = 0; i < n; ++i) {
fluidState.setIndex(i);
const auto& params = materialLawManager_->materialLawParams(cells[i]);