Skip to content

Commit 71fb4f9

Browse files
committed
try disabling shooting tests for orbital in v1.9
1 parent e0512bb commit 71fb4f9

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

test/runtests.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ const GROUP = uppercase(get(ENV, "GROUP", "ALL"))
1111
@time @safetestset "Ray Tracing BVP" begin
1212
include("shooting/ray_tracing.jl")
1313
end
14-
@time @safetestset "Orbital" begin
15-
include("shooting/orbital.jl")
14+
if VERSION v"1.10-"
15+
@time @safetestset "Orbital" begin
16+
include("shooting/orbital.jl")
17+
end
1618
end
1719
if VERSION v"1.10-"
1820
@time @safetestset "Shooting NLLS Tests" begin

test/shooting/orbital.jl

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,12 @@ for autodiff in (AutoForwardDiff(; chunksize = 6), AutoFiniteDiff(; fdtype = Val
7777
@test norm(resid_f, Inf) < 0.005
7878

7979
# 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
8886
end
8987

9088
### Using the TwoPoint BVP Structure
@@ -102,13 +100,11 @@ for autodiff in (AutoForwardDiff(; chunksize = 6), AutoFiniteDiff(; fdtype = Val
102100
@test norm(reduce(vcat, resid_f_2p), Inf) < 0.005
103101

104102
# 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
114110
end

0 commit comments

Comments
 (0)