https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: 698a8e791ef9a1b2ce40a8f6e6d2139516df693e authored by Tom Fischer on 28 May 2021, 12:48:48 UTC
Merge branch 'BinaryToPVTUConversionTool' into 'master'
Tip revision: 698a8e7
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"

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