From 03d75fc586b11c5032d860bb123b02c435b5cae7 Mon Sep 17 00:00:00 2001 From: stormy/cli Date: Sat, 17 Jan 2026 14:50:36 -0500 Subject: [PATCH 1/2] wip --- src/integrator/integrator.cpp | 1 - src/integrator/integrator.hpp | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/integrator/integrator.cpp b/src/integrator/integrator.cpp index bfec375..d36a6b9 100644 --- a/src/integrator/integrator.cpp +++ b/src/integrator/integrator.cpp @@ -26,7 +26,6 @@ IntegratorOptions IntegratorOptionsImpl::from_yaml(YAML::Node const& node, op->tlim() = node["tlim"].as(1.e9); op->nlim() = node["nlim"].as(-1); op->ncycle_out() = node["ncycle_out"].as(1); - op->restart() = node["restart"].as(""); op->verbose() = node["verbose"].as(verbose); return op; } diff --git a/src/integrator/integrator.hpp b/src/integrator/integrator.hpp index 0c99497..c9a0ee4 100644 --- a/src/integrator/integrator.hpp +++ b/src/integrator/integrator.hpp @@ -44,8 +44,7 @@ struct IntegratorOptionsImpl { << "* nlim = " << nlim() << "\n" << "* ncycle_out = " << ncycle_out() << "\n" << "* max_redo = " << max_redo() << "\n" - << "* verbose = " << verbose() << "\n" - << "* restart = " << restart() << "\n"; + << "* verbose = " << verbose() << "\n"; } ADD_ARG(std::string, type) = "rk3"; @@ -55,7 +54,6 @@ struct IntegratorOptionsImpl { ADD_ARG(int, ncycle_out) = 1; ADD_ARG(int, max_redo) = 5; ADD_ARG(bool, verbose) = false; - ADD_ARG(std::string, restart) = ""; }; using IntegratorOptions = std::shared_ptr; From 27a9d470425476189cb15b3b0a495094203c6e3b Mon Sep 17 00:00:00 2001 From: stormy/cli Date: Sat, 17 Jan 2026 15:10:25 -0500 Subject: [PATCH 2/2] fix python --- python/csrc/pyintegrator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/csrc/pyintegrator.cpp b/python/csrc/pyintegrator.cpp index 6e36f00..7b1d50a 100644 --- a/python/csrc/pyintegrator.cpp +++ b/python/csrc/pyintegrator.cpp @@ -46,8 +46,7 @@ void bind_integrator(py::module &m) { .ADD_OPTION(double, harp::IntegratorOptionsImpl, tlim) .ADD_OPTION(int, harp::IntegratorOptionsImpl, nlim) .ADD_OPTION(int, harp::IntegratorOptionsImpl, ncycle_out) - .ADD_OPTION(int, harp::IntegratorOptionsImpl, max_redo) - .ADD_OPTION(std::string, harp::IntegratorOptionsImpl, restart); + .ADD_OPTION(int, harp::IntegratorOptionsImpl, max_redo); ADD_HARP_MODULE(Integrator, IntegratorOptions, py::arg("stage"), py::arg("u0"), py::arg("u1"), py::arg("u2"))