[cleanup] remove two uninitialized warnings in SaturationProposFromDeck.
This commit is contained in:
parent
d504715caa
commit
d058d8e380
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user