OGS
PhreeqcKernelData/ReactionRate.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#include "ReactionRate.h"
5
6namespace ChemistryLib
7{
8namespace PhreeqcKernelData
9{
10ReactionRate::ReactionRate(std::string kinetic_reactant_,
11 std::vector<std::string> const& statements)
12 : kinetic_reactant(std::move(kinetic_reactant_))
13{
14 int line_number = 1;
15 for (auto const& statement : statements)
16 {
17 _commands += std::to_string(line_number) + " " + statement + "; ";
18 ++line_number;
19 }
20}
21} // namespace PhreeqcKernelData
22} // namespace ChemistryLib
ReactionRate(std::string kinetic_reactant_, std::vector< std::string > const &statements)