Skip to content

Commit d0cb710

Browse files
authored
Merge pull request #170 from johhell/Sundials
Update for Sundials@4.20.1
2 parents 2eaecfb + 2b589b5 commit d0cb710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SimulateAndPlot.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ function simulateSegment!(m::InstantiatedModel{FloatType,TimeType}, algorithm=mi
538538

539539
# Compute solution
540540
abstol = 0.1*options.tolerance
541-
tstops = (m.eventHandler.nextEventTime,)
541+
tstops = [m.eventHandler.nextEventTime,]
542542
maxiters = Int(typemax(Int32)) # switch off maximum number of iterations (typemax(Int) gives an inexact error for Sundials)
543543
if ismissing(algorithm)
544544
TimerOutputs.@timeit m.timer "DifferentialEquations.solve" solution = DifferentialEquations.solve(problem, reltol=options.tolerance, abstol=abstol, save_everystep=false,

0 commit comments

Comments
 (0)