mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 08:38:23 +01:00
refactor: Comment out unused code in KineticWrapper::names(), leading to doubling of names
This commit is contained in:
parent
e6e5e0d515
commit
48e65d87ad
@ -59,20 +59,20 @@ KineticWrapper::names(cxxKinetics *kinetics,
|
|||||||
kin_comps.push_back(comp.Get_rate_name());
|
kin_comps.push_back(comp.Get_rate_name());
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto &kin_name : kin_comps) {
|
// for (const auto &kin_name : kin_comps) {
|
||||||
auto it = std::find_if(kinetics->Get_kinetics_comps().begin(),
|
// auto it = std::find_if(kinetics->Get_kinetics_comps().begin(),
|
||||||
kinetics->Get_kinetics_comps().end(),
|
// kinetics->Get_kinetics_comps().end(),
|
||||||
[&](const cxxKineticsComp &comp) {
|
// [&](const cxxKineticsComp &comp) {
|
||||||
return comp.Get_rate_name() == kin_name;
|
// return comp.Get_rate_name() == kin_name;
|
||||||
});
|
// });
|
||||||
|
|
||||||
if (it == kinetics->Get_kinetics_comps().end()) {
|
// if (it == kinetics->Get_kinetics_comps().end()) {
|
||||||
throw std::runtime_error(
|
// throw std::runtime_error(
|
||||||
"Kinetic component not found in Phreeqc variables");
|
// "Kinetic component not found in Phreeqc variables");
|
||||||
}
|
// }
|
||||||
|
|
||||||
names.push_back(it->Get_rate_name());
|
// names.push_back(it->Get_rate_name());
|
||||||
}
|
// }
|
||||||
|
|
||||||
return names;
|
return names;
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user