swh:1:snp:6088ab52ef49920e01e3f334cdf4d5d6c8a822b9
Raw File
Tip revision: ac4f8c5cdfb3463bb9a661763940b39a72a45852 authored by ericsimo on 15 February 2021, 17:53:08 UTC
edit pthr to pressure_threshold in gtest
Tip revision: ac4f8c5
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