@@ -14,7 +14,7 @@ The aim of this benchmark is to see what happens with the energy error when high
1414using OrdinaryDiffEq, Plots, DiffEqCallbacks, LinearAlgebra
1515using TaylorIntegration
1616using ParameterizedFunctions
17- using StaticArrays, ADTypes
17+ using StaticArrays
1818gr()
1919default(fmt=:png)
2020
@@ -67,7 +67,7 @@ function g(resid, u, p)
6767end
6868
6969const E = H(iip_p0, iip_q0, nothing)
70- const cb = ManifoldProjection(g, nlopts=Dict(:ftol=>1e-13), autodiff = AutoFiniteDiff() );
70+ const cb = ManifoldProjection(g, nlopts=Dict(:ftol=>1e-13));
7171```
7272
7373For the comparison we will use the following function
@@ -78,11 +78,11 @@ abs_energy_err(sol) = [abs.(H([sol[1,j], sol[2,j]], [sol[3,j], sol[4,j]],nothing
7878
7979function compare(mode=:inplace, all=true, plt=nothing; tmax=1e2)
8080 if mode == :inplace
81- prob = DynamicalODEProblem(iip_dp, iip_dq, iip_p0, iip_q0, (0., tmax), nothing )
81+ prob = DynamicalODEProblem(iip_dp, iip_dq, iip_p0, iip_q0, (0., tmax))
8282 else
83- prob = DynamicalODEProblem(oop_dp, oop_dq, oop_p0, oop_q0, (0., tmax), nothing )
83+ prob = DynamicalODEProblem(oop_dp, oop_dq, oop_p0, oop_q0, (0., tmax))
8484 end
85- prob_linear = ODEProblem(hamilton, vcat(iip_p0, iip_q0), (0., tmax), nothing )
85+ prob_linear = ODEProblem(hamilton, vcat(iip_p0, iip_q0), (0., tmax))
8686
8787 GC.gc()
8888 (mode == :inplace && all) && @time sol1 = solve(prob, Vern9(), callback=cb, abstol=1e-14, reltol=1e-14)
@@ -191,4 +191,4 @@ In comparison with the Henon-Heiles case, we see that the symplectic methods are
191191```julia, echo = false
192192using SciMLBenchmarks
193193SciMLBenchmarks.bench_footer(WEAVE_ARGS[:folder],WEAVE_ARGS[:file])
194- ```
194+ ```
0 commit comments