https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: 5502aaeb2d6459fdba036dbe93ea3698a4a4a1bc authored by Tom Fischer on 03 March 2021, 11:03:37 UTC
Merge branch 'GhostPartitioningFix' into 'master'
Tip revision: 5502aae
InitialAqueousSolution.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 "InitialAqueousSolution.h"

namespace ChemistryLib
{
namespace PhreeqcKernelData
{
InitialAqueousSolution::InitialAqueousSolution(
    std::map<std::string, cxxISolutionComp>& components)
{
    units = "Mol/kgw";

    for (auto& map_pair : components)
    {
        auto& component = map_pair.second;
        component.Set_units(units.c_str());
        component.Set_pe_reaction(default_pe);
    }

    comps = components;
}
}  // namespace PhreeqcKernelData
}  // namespace ChemistryLib
back to top