add some missing initializers

This commit is contained in:
Arne Morten Kvarving
2025-01-23 10:46:55 +01:00
parent 4d2b07432c
commit 8f293ba5e5
10 changed files with 52 additions and 52 deletions

View File

@@ -167,8 +167,8 @@ public:
{ return 1.0 - upstreamWeight(phaseIdx); }
private:
short upstreamScvIdx_[numPhases];
short downstreamScvIdx_[numPhases];
short upstreamScvIdx_[numPhases]{};
short downstreamScvIdx_[numPhases]{};
};
} // namespace Opm

View File

@@ -500,10 +500,10 @@ private:
Evaluation pressureDifference_[numPhases];
// the local indices of the interior and exterior degrees of freedom
unsigned short interiorDofIdx_;
unsigned short exteriorDofIdx_;
short upIdx_[numPhases];
short dnIdx_[numPhases];
unsigned short interiorDofIdx_{};
unsigned short exteriorDofIdx_{};
short upIdx_[numPhases]{};
short dnIdx_[numPhases]{};
};
} // namespace Opm

View File

@@ -122,7 +122,7 @@ public:
{};
private:
int dofOffset_;
int dofOffset_{};
};
} // namespace Opm

View File

@@ -124,10 +124,10 @@ public:
private:
// local indices of the interior and the exterior sub-control-volumes
unsigned short interiorScvIdx_;
unsigned short exteriorScvIdx_;
unsigned short interiorScvIdx_{};
unsigned short exteriorScvIdx_{};
Scalar extrusionFactor_;
Scalar extrusionFactor_{};
};
} // namespace Opm

View File

@@ -341,9 +341,9 @@ private:
#if HAVE_DUNE_LOCALFUNCTIONS
static LocalFiniteElementCache feCache_;
const LocalFiniteElement* localFiniteElement_;
std::vector<Dune::FieldVector<Scalar, 1>> p1Value_[maxFap];
DimVector p1Gradient_[maxFap][maxDof];
const LocalFiniteElement* localFiniteElement_{nullptr};
std::vector<Dune::FieldVector<Scalar, 1>> p1Value_[maxFap]{};
DimVector p1Gradient_[maxFap][maxDof]{};
#endif // HAVE_DUNE_LOCALFUNCTIONS
};