swh:1:snp:6088ab52ef49920e01e3f334cdf4d5d6c8a822b9
Raw File
Tip revision: 7f929a5108ab58cf1be0bb5093daf71becdbd8ec authored by Lars Bilke on 09 February 2021, 12:19:51 UTC
[CMake] Removed option OGS_USE_EIGEN.
Tip revision: 7f929a5
KineticReactant.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 <ostream>

#include "KineticReactant.h"

namespace ChemistryLib
{
namespace PhreeqcIOData
{
void KineticReactant::print(std::ostream& os,
                            std::size_t const chemical_system_id) const
{
    os << name << "\n";

    if (!chemical_formula.empty())
    {
        os << "-formula " << chemical_formula << "\n";
    }

    os << "-m  " << (*molality)[chemical_system_id] << "\n";

    os << "-parms " << (*molality)[chemical_system_id];
    for (auto const& parameter : parameters)
    {
        os << " " << parameter;
    }
    os << "\n";
}
const ItemType KineticReactant::item_type;
}  // namespace PhreeqcIOData
}  // namespace ChemistryLib
back to top