[cleanup] Fix that phaseUsage might be used uninitialzed in test.

We need to make sure that all pods are initialzed when using
the default constructor. Fixes
```
RateConverter.hpp:83:50: warning: ‘phaseUsage’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   83 |                 , attr_      (rmap_, Attributes())
      |                                                  ^
```
This commit is contained in:
Markus Blatt 2023-03-10 14:06:46 +01:00
parent 6d07c490c3
commit 9cabbede2c

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{};
};