Skip to content
Snippets Groups Projects
Commit 1d99e76a authored by renchao.lu's avatar renchao.lu
Browse files

[CL] Assign uninitialized member variables.

parent 39f1011e
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,6 @@ private:
std::unique_ptr<Output> const _output;
std::vector<std::pair<int, std::string>> const&
_process_id_to_component_name_map;
double _dt;
double _dt = std::numeric_limits<double>::quiet_NaN();
};
} // namespace ChemistryLib
......@@ -22,7 +22,7 @@ struct Component
explicit Component(std::string name_) : name(std::move(name_)) {}
std::string const name;
double amount;
double amount = std::numeric_limits<double>::quiet_NaN();
static const ItemType item_type = ItemType::Component;
};
......@@ -53,7 +53,7 @@ struct AqueousSolution
double temperature;
double pressure;
double pH;
double pH = std::numeric_limits<double>::quiet_NaN();
double pe;
std::vector<Component> components;
MeansOfAdjustingCharge const means_of_adjusting_charge;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment