OGS
KineticReactant.cpp
Go to the documentation of this file.
1
11#include "KineticReactant.h"
12
13#include <ostream>
14
15namespace ChemistryLib
16{
17namespace PhreeqcIOData
18{
19void KineticReactant::print(std::ostream& os,
20 std::size_t const chemical_system_id) const
21{
22 os << name << "\n";
23
24 if (!chemical_formula.empty())
25 {
26 os << "-formula " << chemical_formula << "\n";
27 }
28
29 os << "-m " << (*molality)[chemical_system_id] << "\n";
30
31 os << "-parms " << (*molality)[chemical_system_id];
32 for (auto const& parameter : parameters)
33 {
34 os << " " << parameter;
35 }
36 os << "\n";
37}
39} // namespace PhreeqcIOData
40} // namespace ChemistryLib
void print(std::ostream &os, std::size_t const chemical_system_id) const