Fix some warnings when running with valgrinds MPI wrapper.

It warns whenever uninitialized data is sent.
This commit is contained in:
Markus Blatt 2020-09-30 16:02:20 +02:00
parent e8423d3b25
commit d99aa0d497
3 changed files with 4 additions and 4 deletions

View File

@ -168,7 +168,7 @@ struct GroupProductionProperties {
UDAValue water_target;
UDAValue gas_target;
UDAValue liquid_target;
double guide_rate;
double guide_rate = 0;
GuideRateTarget guide_rate_def = GuideRateTarget::NO_GUIDE_RATE;
double resv_target = 0;
bool available_group_control = true;

View File

@ -89,8 +89,8 @@ private:
std::vector<RockComp> m_comp;
std::string num_property = ParserKeywords::ROCKOPTS::TABLE_TYPE::defaultValue;
std::size_t num_tables = ParserKeywords::ROCKCOMP::NTROCC::defaultValue;
bool m_water_compaction;
Hysteresis hyst_mode;
bool m_water_compaction = false;
Hysteresis hyst_mode = Hysteresis::REVERS;
};
} //namespace Opm

View File

@ -541,7 +541,7 @@ namespace Opm {
DenT gasDenT;
DenT watDenT;
StandardCond stcond;
std::size_t m_gas_comp_index;
std::size_t m_gas_comp_index = 77;
double m_rtemp;
double m_salinity;