@@ -77,14 +77,12 @@ for autodiff in (AutoForwardDiff(; chunksize = 6), AutoFiniteDiff(; fdtype = Val
77
77
@test norm (resid_f, Inf ) < 0.005
78
78
79
79
# Older versions take too long on the first run
80
- if VERSION ≥ v " 1.10-"
81
- jac_alg = BVPJacobianAlgorithm (; nonbc_diffmode = autodiff)
82
- @time sol = solve (bvp, MultipleShooting (10 , DP5 (); nlsolve, jac_alg);
83
- force_dtmin = true , abstol = 1e-6 , reltol = 1e-6 , verbose = false )
84
- cur_bc! (resid_f, sol, nothing , sol. t)
85
- @info " Multiple Shooting Lambert's Problem: $(norm (resid_f, Inf )) "
86
- @test norm (resid_f, Inf ) < 0.005
87
- end
80
+ jac_alg = BVPJacobianAlgorithm (; nonbc_diffmode = autodiff)
81
+ @time sol = solve (bvp, MultipleShooting (10 , DP5 (); nlsolve, jac_alg);
82
+ force_dtmin = true , abstol = 1e-6 , reltol = 1e-6 , verbose = false )
83
+ cur_bc! (resid_f, sol, nothing , sol. t)
84
+ @info " Multiple Shooting Lambert's Problem: $(norm (resid_f, Inf )) "
85
+ @test norm (resid_f, Inf ) < 0.005
88
86
end
89
87
90
88
# ## Using the TwoPoint BVP Structure
@@ -102,13 +100,11 @@ for autodiff in (AutoForwardDiff(; chunksize = 6), AutoFiniteDiff(; fdtype = Val
102
100
@test norm (reduce (vcat, resid_f_2p), Inf ) < 0.005
103
101
104
102
# Older versions take too long on the first run
105
- if VERSION ≥ v " 1.10-"
106
- jac_alg = BVPJacobianAlgorithm (; nonbc_diffmode = autodiff, bc_diffmode = autodiff)
107
- @time sol = solve (bvp, MultipleShooting (10 , DP5 (); nlsolve, jac_alg);
108
- force_dtmin = true , abstol = 1e-6 , reltol = 1e-6 , verbose = false )
109
- cur_bc_2point_a! (resid_f_2p[1 ], sol (t0), nothing )
110
- cur_bc_2point_b! (resid_f_2p[2 ], sol (t1), nothing )
111
- @info " Multiple Shooting Lambert's Problem: $(norm (reduce (vcat, resid_f_2p), Inf )) "
112
- @test norm (reduce (vcat, resid_f_2p), Inf ) < 0.005
113
- end
103
+ jac_alg = BVPJacobianAlgorithm (; nonbc_diffmode = autodiff, bc_diffmode = autodiff)
104
+ @time sol = solve (bvp, MultipleShooting (10 , DP5 (); nlsolve, jac_alg);
105
+ force_dtmin = true , abstol = 1e-6 , reltol = 1e-6 , verbose = false )
106
+ cur_bc_2point_a! (resid_f_2p[1 ], sol (t0), nothing )
107
+ cur_bc_2point_b! (resid_f_2p[2 ], sol (t1), nothing )
108
+ @info " Multiple Shooting Lambert's Problem: $(norm (reduce (vcat, resid_f_2p), Inf )) "
109
+ @test norm (reduce (vcat, resid_f_2p), Inf ) < 0.005
114
110
end
0 commit comments