From 065a1a993f320afe39e7f9353f396140faf24fe3 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sun, 7 Jan 2024 15:13:02 -0500 Subject: [PATCH] Update to match the OrdinaryDiffEq interpolation change --- src/solve.jl | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/solve.jl b/src/solve.jl index ae779f3..404d7c1 100644 --- a/src/solve.jl +++ b/src/solve.jl @@ -168,20 +168,13 @@ function DiffEqBase.__init(prob::DiffEqBase.AbstractDDEProblem, stats = DDEStats(0) # create solution - if iscomposite(alg) - id = OrdinaryDiffEq.CompositeInterpolationData(f_with_history, timeseries, ts, ks, - Int[], dense, cache, differential_vars) - sol = DiffEqBase.build_solution(prob, alg.alg, ts, timeseries; - dense = dense, k = ks, interp = id, - alg_choice = id.alg_choice, calculate_error = false, - stats = stats) - else - id = OrdinaryDiffEq.InterpolationData(f_with_history, timeseries, ts, ks, dense, - cache, differential_vars) - sol = DiffEqBase.build_solution(prob, alg.alg, ts, timeseries; - dense = dense, k = ks, interp = id, - calculate_error = false, stats = stats) - end + alg_choice = iscomposite(alg) ? Int[] : nothing + id = OrdinaryDiffEq.CompositeInterpolationData(f_with_history, timeseries, ts, ks, + alg_choice, dense, cache, differential_vars, false) + sol = DiffEqBase.build_solution(prob, alg.alg, ts, timeseries; + dense = dense, k = ks, interp = id, + alg_choice = id.alg_choice, calculate_error = false, + stats = stats) # retrieve time stops, time points at which solutions is saved, and discontinuities tstops_internal = OrdinaryDiffEq.initialize_tstops(tType, tstops, d_discontinuities,