mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
[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:
parent
6d07c490c3
commit
9cabbede2c
@ -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{};
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user