Skip to content
Snippets Groups Projects
Commit abd221d2 authored by renchao.lu's avatar renchao.lu
Browse files

[CL] Uninitialize number of chemical systems.

parent ea94d11f
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,7 @@ std::unique_ptr<AqueousSolution> createAqueousSolution(
MeshLib::MeshItemType::IntegrationPoint,
1);
auto components =
createSolutionComponents(config, mesh.getNumberOfBaseNodes());
auto components = createSolutionComponents(config);
auto charge_balance = createChargeBalance(config);
......
......@@ -17,7 +17,7 @@ namespace ChemistryLib
namespace PhreeqcIOData
{
std::vector<Component> createSolutionComponents(
BaseLib::ConfigTree const& config, std::size_t const num_chemical_systems)
BaseLib::ConfigTree const& config)
{
std::vector<Component> components;
//! \ogs_file_param{prj__chemical_system__solution__components}
......@@ -27,7 +27,7 @@ std::vector<Component> createSolutionComponents(
//! \ogs_file_param{prj__chemical_system__solution__components__component}
comp_config.getConfigParameterList<std::string>("component"))
{
components.emplace_back(component_name, num_chemical_systems);
components.emplace_back(component_name);
}
return components;
......
......@@ -24,6 +24,6 @@ namespace PhreeqcIOData
struct Component;
std::vector<Component> createSolutionComponents(
BaseLib::ConfigTree const& config, std::size_t const num_chemical_systems);
BaseLib::ConfigTree const& config);
} // namespace PhreeqcIOData
} // namespace ChemistryLib
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment