OGS
InitialAqueousSolution.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 "
InitialAqueousSolution.h
"
5
6
namespace
ChemistryLib
7
{
8
namespace
PhreeqcKernelData
9
{
10
InitialAqueousSolution::InitialAqueousSolution
(
11
std::map<std::string, cxxISolutionComp>& components)
12
{
13
units =
"Mol/kgw"
;
14
15
for
(
auto
& map_pair : components)
16
{
17
auto
& component = map_pair.second;
18
component.Set_units(units.c_str());
19
component.Set_pe_reaction(default_pe);
20
}
21
22
comps = components;
23
}
24
}
// namespace PhreeqcKernelData
25
}
// namespace ChemistryLib
InitialAqueousSolution.h
ChemistryLib::PhreeqcKernelData::InitialAqueousSolution::InitialAqueousSolution
InitialAqueousSolution(std::map< std::string, cxxISolutionComp > &components)
Definition
InitialAqueousSolution.cpp:10
ChemistryLib::PhreeqcKernelData
Definition
PhreeqcKernel.cpp:18
ChemistryLib
Definition
ChemicalSolverInterface.h:108
ChemistryLib
PhreeqcKernelData
InitialAqueousSolution.cpp
Generated by
1.14.0