swh:1:snp:f521c49ab17ef7db6ec70b2430e1ed203f50383f
Raw File
Tip revision: e6768efcf9cb85cc0de7676fbdb0e507291b522f authored by joerg on 17 February 2022, 21:03:39 UTC
added small tests for new eigen iterative solvers
Tip revision: e6768ef
ReactionRate.cpp
/**
 * \file
 * \copyright
 * Copyright (c) 2012-2022, 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"

namespace ChemistryLib
{
namespace PhreeqcKernelData
{
ReactionRate::ReactionRate(
    std::string kinetic_reactant_, std::vector<std::string> statements)
    : kinetic_reactant(std::move(kinetic_reactant_))
{
    int line_number = 1;
    for (auto const& statement : statements)
    {
        _commands += std::to_string(line_number) + " " + statement + "; ";
        ++line_number;
    }
}
}  // namespace PhreeqcKernelData
}  // namespace ChemistryLib
back to top