From 2b589b5bfa06f0207583d6978b94bf27ac83f3c4 Mon Sep 17 00:00:00 2001 From: Johann Hell <88904874+johhell@users.noreply.github.com> Date: Mon, 30 Oct 2023 15:30:37 +0100 Subject: [PATCH] Update for Sundials@4.20.1 `tstops` changed from `Tuple` to `Vector` --- src/SimulateAndPlot.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SimulateAndPlot.jl b/src/SimulateAndPlot.jl index c09a07a..8862cef 100644 --- a/src/SimulateAndPlot.jl +++ b/src/SimulateAndPlot.jl @@ -538,7 +538,7 @@ function simulateSegment!(m::InstantiatedModel{FloatType,TimeType}, algorithm=mi # Compute solution abstol = 0.1*options.tolerance - tstops = (m.eventHandler.nextEventTime,) + tstops = [m.eventHandler.nextEventTime,] maxiters = Int(typemax(Int32)) # switch off maximum number of iterations (typemax(Int) gives an inexact error for Sundials) if ismissing(algorithm) TimerOutputs.@timeit m.timer "DifferentialEquations.solve" solution = DifferentialEquations.solve(problem, reltol=options.tolerance, abstol=abstol, save_everystep=false,