From 2f24eb0839493df39c0ef6a79b0e5144f51436ec Mon Sep 17 00:00:00 2001 From: oscarddssmith Date: Wed, 14 Feb 2024 13:27:34 -0500 Subject: [PATCH 1/2] add optional continuous_modification argument to reeval_internals_due_to_modification! that when set to false allows the integrator to skip recalculating the interpolation data --- src/integrator_interface.jl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/integrator_interface.jl b/src/integrator_interface.jl index 8d4196b7f..ed7ca86af 100644 --- a/src/integrator_interface.jl +++ b/src/integrator_interface.jl @@ -313,10 +313,16 @@ end addsteps!(i::DEIntegrator, args...) = nothing """ - reeval_internals_due_to_modification!(integrator::DDEIntegrator) + reeval_internals_due_to_modification!(integrator::DEIntegrator, continuous_modification=true) -Recalculate interpolation data and update ODE integrator after changes by callbacks. +Update DE integrator after changes by callbacks. +For DAEs (either implicit or semi-explicit), this requires re-solving alebraic variables. +If continuous_modification is true (or unspecified), this should also recalculate interpolation data. +Otherwise the integrator is allowed to skip recalculating the interpolation. """ +function reeval_internals_due_to_modification!(integrator::DEIntegrator, continuous_modification) + reeval_internals_due_to_modification!(integrator::DEIntegrator) +end reeval_internals_due_to_modification!(integrator::DEIntegrator) = nothing """ From 3ef766a9b8e8e8243c4d7ace16bd4166da98ec09 Mon Sep 17 00:00:00 2001 From: oscarddssmith Date: Wed, 14 Feb 2024 13:39:30 -0500 Subject: [PATCH 2/2] update version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 397264370..444505ada 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "SciMLBase" uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462" authors = ["Chris Rackauckas and contributors"] -version = "2.25.0" +version = "2.26.0" [deps] ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"