changed: consistently use std::array

This commit is contained in:
Arne Morten Kvarving
2022-08-05 10:35:52 +02:00
parent 874e4f818c
commit 6ed8a38ba5
3 changed files with 4 additions and 6 deletions

View File

@@ -804,7 +804,7 @@ public:
if (!this->oilPressure_.empty()) {
// this assumes that capillary pressures only depend on the phase saturations
// and possibly on temperature. (this is always the case for ECL problems.)
Dune::FieldVector< Scalar, numPhases > pc(0);
std::array<Scalar, numPhases> pc = {0};
const MaterialLawParams& matParams = simulator_.problem().materialLawParams(elemIdx);
MaterialLaw::capillaryPressures(pc, matParams, fs);
Valgrind::CheckDefined(this->oilPressure_[elemIdx]);