Ensure Proper Initialisation of All TableManager Member

Otherwise, the equality operators for a default-constructed
TableManager object, mostly used in unit tests, will depend on
uninitialised values.

Thanks to [at]akva2 for the initial clue to the underlying cause.
This commit is contained in:
Bård Skaflestad 2022-01-21 13:13:10 +01:00
parent 49c10378bb
commit 6f79a86e66

View File

@ -381,8 +381,8 @@ namespace Opm {
DenT watDenT;
StandardCond stcond;
std::size_t m_gas_comp_index = 77;
double m_rtemp;
double m_salinity;
double m_rtemp {288.7056}; // 60 Fahrenheit in Kelvin
double m_salinity {0.0};
struct SplitSimpleTables {
size_t plyshMax = 0;