Skip to content

Commit

Permalink
Merge pull request #170 from johhell/Sundials
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinOtter authored Oct 31, 2023
2 parents 2eaecfb + 2b589b5 commit d0cb710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SimulateAndPlot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d0cb710

Please sign in to comment.