diff --git a/source/EulerIntegrator.h b/source/EulerIntegrator.h index 737318a546..36d835a5a5 100644 --- a/source/EulerIntegrator.h +++ b/source/EulerIntegrator.h @@ -244,9 +244,7 @@ namespace rr */ void resetSettings() { - settings.clear(); - hints.clear(); - descriptions.clear(); + Solver::resetSettings(); // Euler integrator has no settings } diff --git a/source/GillespieIntegrator.cpp b/source/GillespieIntegrator.cpp index f0fee94847..5858d110a0 100755 --- a/source/GillespieIntegrator.cpp +++ b/source/GillespieIntegrator.cpp @@ -192,9 +192,7 @@ namespace rr void GillespieIntegrator::resetSettings() { - settings.clear(); - hints.clear(); - descriptions.clear(); + Solver::resetSettings(); // Set default integrator settings. addSetting("seed", defaultSeed(), "Set the seed into the random engine. (ulong)", "(ulong) Set the seed into the random engine."); diff --git a/source/NLEQSolver.cpp b/source/NLEQSolver.cpp index 27dcae0ea9..bc268df6f2 100644 --- a/source/NLEQSolver.cpp +++ b/source/NLEQSolver.cpp @@ -46,9 +46,7 @@ void NLEQSolver::loadConfigSettings() void NLEQSolver::resetSettings() { - settings.clear(); - hints.clear(); - descriptions.clear(); + Solver::resetSettings(); // Set default settings. addSetting("maximum_iterations", 100, "The maximum number of iterations the solver is allowed to use (int)", "(int) Iteration caps off at the maximum, regardless of whether a solution has been reached"); diff --git a/source/RK4Integrator.cpp b/source/RK4Integrator.cpp index 95ec64708c..6c00d6a888 100644 --- a/source/RK4Integrator.cpp +++ b/source/RK4Integrator.cpp @@ -234,9 +234,7 @@ namespace rr void RK4Integrator::resetSettings() { - settings.clear(); - hints.clear(); - descriptions.clear(); + Solver::resetSettings(); } // void RK4Integrator::setItem(const std::string& key,