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( ...@@ -39,8 +39,7 @@ std::unique_ptr<AqueousSolution> createAqueousSolution(
MeshLib::MeshItemType::IntegrationPoint, MeshLib::MeshItemType::IntegrationPoint,
1); 1);
auto components = auto components = createSolutionComponents(config);
createSolutionComponents(config, mesh.getNumberOfBaseNodes());
auto charge_balance = createChargeBalance(config); auto charge_balance = createChargeBalance(config);
......
...@@ -17,7 +17,7 @@ namespace ChemistryLib ...@@ -17,7 +17,7 @@ namespace ChemistryLib
namespace PhreeqcIOData namespace PhreeqcIOData
{ {
std::vector<Component> createSolutionComponents( std::vector<Component> createSolutionComponents(
BaseLib::ConfigTree const& config, std::size_t const num_chemical_systems) BaseLib::ConfigTree const& config)
{ {
std::vector<Component> components; std::vector<Component> components;
//! \ogs_file_param{prj__chemical_system__solution__components} //! \ogs_file_param{prj__chemical_system__solution__components}
...@@ -27,7 +27,7 @@ std::vector<Component> createSolutionComponents( ...@@ -27,7 +27,7 @@ std::vector<Component> createSolutionComponents(
//! \ogs_file_param{prj__chemical_system__solution__components__component} //! \ogs_file_param{prj__chemical_system__solution__components__component}
comp_config.getConfigParameterList<std::string>("component")) comp_config.getConfigParameterList<std::string>("component"))
{ {
components.emplace_back(component_name, num_chemical_systems); components.emplace_back(component_name);
} }
return components; return components;
......
...@@ -24,6 +24,6 @@ namespace PhreeqcIOData ...@@ -24,6 +24,6 @@ namespace PhreeqcIOData
struct Component; struct Component;
std::vector<Component> createSolutionComponents( std::vector<Component> createSolutionComponents(
BaseLib::ConfigTree const& config, std::size_t const num_chemical_systems); BaseLib::ConfigTree const& config);
} // namespace PhreeqcIOData } // namespace PhreeqcIOData
} // namespace ChemistryLib } // 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