diff --git a/ChemistryLib/PhreeqcIOData/CreateAqueousSolution.cpp b/ChemistryLib/PhreeqcIOData/CreateAqueousSolution.cpp index 926fa487276282fcc4de85aabb9883a222ebe471..322ed6813d68f8d1508bb885e5315c214dcd618b 100644 --- a/ChemistryLib/PhreeqcIOData/CreateAqueousSolution.cpp +++ b/ChemistryLib/PhreeqcIOData/CreateAqueousSolution.cpp @@ -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); diff --git a/ChemistryLib/PhreeqcIOData/CreateSolutionComponent.cpp b/ChemistryLib/PhreeqcIOData/CreateSolutionComponent.cpp index 3d9d25577b47325b589bfc6f812ffa7d22a70b1f..44c0fce8422b462bcd12a88f9489c4d39f877ce5 100644 --- a/ChemistryLib/PhreeqcIOData/CreateSolutionComponent.cpp +++ b/ChemistryLib/PhreeqcIOData/CreateSolutionComponent.cpp @@ -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; diff --git a/ChemistryLib/PhreeqcIOData/CreateSolutionComponent.h b/ChemistryLib/PhreeqcIOData/CreateSolutionComponent.h index d745e90979c74df7e02274a90684b61ba6d01ddc..417450e9dac2319acd7b65572483082a49ecefb1 100644 --- a/ChemistryLib/PhreeqcIOData/CreateSolutionComponent.h +++ b/ChemistryLib/PhreeqcIOData/CreateSolutionComponent.h @@ -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