Merge pull request #4522 from blattms/removed-use-uninit-warnings

[cleanup] Fix that phaseUsage might be used uninitialzed in test.
This commit is contained in:
Bård Skaflestad
2023-03-10 15:06:01 +01:00
committed by GitHub

View File

@@ -52,14 +52,14 @@ namespace Opm
std::array<int, MaxNumPhases + NumCryptoPhases> phase_pos;
int num_phases;
bool has_solvent;
bool has_polymer;
bool has_energy;
bool has_solvent{};
bool has_polymer{};
bool has_energy{};
// polymer molecular weight
bool has_polymermw;
bool has_foam;
bool has_brine;
bool has_zFraction;
bool has_polymermw{};
bool has_foam{};
bool has_brine{};
bool has_zFraction{};
};