swh:1:snp:f521c49ab17ef7db6ec70b2430e1ed203f50383f
Raw File
Tip revision: 85b191f619a51e9284a5b518c80978af329f83dd authored by Wenqing Wang on 10 May 2021, 08:52:00 UTC
[Test] Pass porosity via the variable array to EffectiveThermalConductivityPorosityMixing
Tip revision: 85b191f
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 "KineticReactant.h"

#include <ostream>

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