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

[CL] Rename function argument.

parent 510a0310
No related branches found
No related tags found
No related merge requests found
...@@ -17,10 +17,10 @@ namespace ChemistryLib ...@@ -17,10 +17,10 @@ namespace ChemistryLib
namespace PhreeqcIOData namespace PhreeqcIOData
{ {
void EquilibriumReactant::print(std::ostream& os, void EquilibriumReactant::print(std::ostream& os,
std::size_t const global_id) const std::size_t const chemical_system_id) const
{ {
os << name << " " << saturation_index << " " << (*molality)[global_id] os << name << " " << saturation_index << " "
<< "\n"; << (*molality)[chemical_system_id] << "\n";
} }
} // namespace PhreeqcIOData } // namespace PhreeqcIOData
} // namespace ChemistryLib } // namespace ChemistryLib
...@@ -39,7 +39,7 @@ struct EquilibriumReactant ...@@ -39,7 +39,7 @@ struct EquilibriumReactant
{ {
} }
void print(std::ostream& os, std::size_t const global_id) const; void print(std::ostream& os, std::size_t const chemical_system_id) const;
std::string const name; std::string const name;
MeshLib::PropertyVector<double>* molality; MeshLib::PropertyVector<double>* molality;
......
...@@ -17,7 +17,7 @@ namespace ChemistryLib ...@@ -17,7 +17,7 @@ namespace ChemistryLib
namespace PhreeqcIOData namespace PhreeqcIOData
{ {
void KineticReactant::print(std::ostream& os, void KineticReactant::print(std::ostream& os,
std::size_t const global_id) const std::size_t const chemical_system_id) const
{ {
os << name << "\n"; os << name << "\n";
...@@ -26,9 +26,9 @@ void KineticReactant::print(std::ostream& os, ...@@ -26,9 +26,9 @@ void KineticReactant::print(std::ostream& os,
os << "-formula " << chemical_formula << "\n"; os << "-formula " << chemical_formula << "\n";
} }
os << "-m " << (*molality)[global_id] << "\n"; os << "-m " << (*molality)[chemical_system_id] << "\n";
os << "-parms " << (*molality)[global_id]; os << "-parms " << (*molality)[chemical_system_id];
for (auto const& parameter : parameters) for (auto const& parameter : parameters)
{ {
os << " " << parameter; os << " " << parameter;
......
...@@ -39,7 +39,7 @@ struct KineticReactant ...@@ -39,7 +39,7 @@ struct KineticReactant
{ {
} }
void print(std::ostream& os, std::size_t const global_id) const; void print(std::ostream& os, std::size_t const chemical_system_id) const;
std::string const name; std::string const name;
std::string const chemical_formula; std::string const chemical_formula;
......
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