OGS
PhreeqcIOData/ReactionRate.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#include "ReactionRate.h"
5
6#include <ostream>
7
8namespace ChemistryLib
9{
10namespace PhreeqcIOData
11{
12std::ostream& operator<<(std::ostream& os, ReactionRate const& reaction_rate)
13{
14 os << reaction_rate.kinetic_reactant << "\n";
15 os << "-start"
16 << "\n";
17 int line_number = 1;
18 for (auto const& expression_statement : reaction_rate.expression_statements)
19 {
20 os << line_number << " " << expression_statement << "\n";
21 ++line_number;
22 }
23 os << "-end"
24 << "\n";
25
26 return os;
27}
28} // namespace PhreeqcIOData
29} // namespace ChemistryLib
std::ostream & operator<<(std::ostream &os, PhreeqcIO const &phreeqc_io)
ReactionRate(std::string kinetic_reactant_, std::vector< std::string > &&expression_statements_)
std::vector< std::string > const expression_statements