Skip to content

Commit

Permalink
use FBDF
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Sep 27, 2024
1 parent 501c1fe commit 7254062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tether_08.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ function simulate(se, simple_sys)
ts = 0:dt:se.duration
prob = ODEProblem(simple_sys, nothing, tspan)
toc()
elapsed_time = @elapsed sol = solve(prob, KenCarp4(autodiff=false); dt, abstol=tol, reltol=tol, saveat=ts)
elapsed_time = @elapsed sol = solve(prob, KenCarp4(autodiff=false); dt, abstol=tol, reltol=tol, saveat=ts)
elapsed_time = @elapsed sol = solve(prob, FBDF(autodiff=true); dt, abstol=tol, reltol=tol, saveat=ts)
elapsed_time = @elapsed sol = solve(prob, FBDF(autodiff=true); dt, abstol=tol, reltol=tol, saveat=ts)
sol, elapsed_time
end

Expand Down

0 comments on commit 7254062

Please sign in to comment.