Revision 53852495a4dd270b3583e7e61591095d0415a788 authored by Thomas Fischer on 19 May 2021, 14:09:43 UTC, committed by Dmitri Naumov on 19 May 2021, 16:00:26 UTC
1 parent 9b1d832
ReactionRate.cpp
/**
* \file
* \copyright
* Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "ReactionRate.h"
#include <ostream>
namespace ChemistryLib
{
namespace PhreeqcIOData
{
std::ostream& operator<<(std::ostream& os, ReactionRate const& reaction_rate)
{
os << reaction_rate.kinetic_reactant << "\n";
os << "-start"
<< "\n";
int line_number = 1;
for (auto const& expression_statement : reaction_rate.expression_statements)
{
os << line_number << " " << expression_statement << "\n";
++line_number;
}
os << "-end"
<< "\n";
return os;
}
} // namespace PhreeqcIOData
} // namespace ChemistryLib
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...