OGS
ReactionRate.cpp
Go to the documentation of this file.
1
11
#include "
ReactionRate.h
"
12
13
#include <ostream>
14
15
namespace
ChemistryLib
16
{
17
namespace
PhreeqcIOData
18
{
19
std::ostream&
operator<<
(std::ostream& os,
ReactionRate
const
& reaction_rate)
20
{
21
os << reaction_rate.
kinetic_reactant
<<
"\n"
;
22
os <<
"-start"
23
<<
"\n"
;
24
int
line_number = 1;
25
for
(
auto
const
& expression_statement : reaction_rate.
expression_statements
)
26
{
27
os << line_number <<
" "
<< expression_statement <<
"\n"
;
28
++line_number;
29
}
30
os <<
"-end"
31
<<
"\n"
;
32
33
return
os;
34
}
35
}
// namespace PhreeqcIOData
36
}
// namespace ChemistryLib
ReactionRate.h
ChemistryLib::PhreeqcIOData::operator<<
std::ostream & operator<<(std::ostream &os, PhreeqcIO const &phreeqc_io)
Definition
PhreeqcIO.cpp:483
ChemistryLib
Definition
ChemicalSolverInterface.h:31
ChemistryLib::PhreeqcIOData::ReactionRate
Definition
ReactionRate.h:22
ChemistryLib::PhreeqcIOData::ReactionRate::expression_statements
std::vector< std::string > const expression_statements
Definition
ReactionRate.h:34
ChemistryLib::PhreeqcIOData::ReactionRate::kinetic_reactant
std::string const kinetic_reactant
Definition
ReactionRate.h:33
ChemistryLib
PhreeqcIOData
ReactionRate.cpp
Generated by
1.12.0