From c8492556b58bf15d8873c482cbf44f0611d1c5b4 Mon Sep 17 00:00:00 2001 From: Sam Isaacson Date: Tue, 13 Aug 2024 08:55:59 -0400 Subject: [PATCH 1/3] add tstops API --- src/common_interface/integrator_utils.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common_interface/integrator_utils.jl b/src/common_interface/integrator_utils.jl index b6004e9..ba5b0bd 100644 --- a/src/common_interface/integrator_utils.jl +++ b/src/common_interface/integrator_utils.jl @@ -289,3 +289,7 @@ function DiffEqBase.reinit!(integrator::AbstractSundialsIntegrator, nothing end + +DiffEqBase.get_tstops(integ::SDEIntegrator) = integ.opts.tstops +DiffEqBase.get_tstops_array(integ::SDEIntegrator) = get_tstops(integ).valtree +DiffEqBase.get_tstops_max(integ::SDEIntegrator) = maximum(get_tstops_array(integ)) From 03cf9f00a7e36103a5c87a3de7e74014b02a73e4 Mon Sep 17 00:00:00 2001 From: Sam Isaacson Date: Tue, 13 Aug 2024 08:56:50 -0400 Subject: [PATCH 2/3] fix --- src/common_interface/integrator_utils.jl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common_interface/integrator_utils.jl b/src/common_interface/integrator_utils.jl index ba5b0bd..c5ffa06 100644 --- a/src/common_interface/integrator_utils.jl +++ b/src/common_interface/integrator_utils.jl @@ -290,6 +290,7 @@ function DiffEqBase.reinit!(integrator::AbstractSundialsIntegrator, nothing end -DiffEqBase.get_tstops(integ::SDEIntegrator) = integ.opts.tstops -DiffEqBase.get_tstops_array(integ::SDEIntegrator) = get_tstops(integ).valtree -DiffEqBase.get_tstops_max(integ::SDEIntegrator) = maximum(get_tstops_array(integ)) +DiffEqBase.get_tstops(integ::AbstractSundialsIntegrator) = integ.opts.tstops +DiffEqBase.get_tstops_array(integ::AbstractSundialsIntegrator) = get_tstops(integ).valtree +DiffEqBase.get_tstops_max(integ::AbstractSundialsIntegrator) = + maximum(get_tstops_array(integ)) From 82f6c0e30ded33e0d98f664ba48a84ba11909d8c Mon Sep 17 00:00:00 2001 From: Sam Isaacson Date: Sun, 18 Aug 2024 11:29:46 -0400 Subject: [PATCH 3/3] update DiffEqBase --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index ec6ea8d..3562717 100644 --- a/Project.toml +++ b/Project.toml @@ -19,7 +19,7 @@ Sundials_jll = "fb77eaff-e24c-56d4-86b1-d163f2edb164" [compat] CEnum = "0.5" DataStructures = "0.18" -DiffEqBase = "6.122" +DiffEqBase = "6.154" PrecompileTools = "1" Reexport = "1.0" SciMLBase = "2.9"