Skip to content

Commit d615ee8

Browse files
committed
foo
1 parent 60f903e commit d615ee8

1 file changed

Lines changed: 6 additions & 20 deletions

File tree

test/indirect/test_goddard_indirect.jl

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,13 @@ function test_goddard_indirect()
4242
end
4343

4444
# tests
45-
t1 = 0.025246759388000528
46-
t2 = 0.061602092906721286
47-
t3 = 0.10401664867856217
48-
tf = 0.20298394547952422
49-
p0 = [3.9428857983400074, 0.14628855388160236, 0.05412448008321635]
45+
p0 = [3.9457646586891744, 0.15039559623165552, 0.05371271293970545]
46+
t1 = 0.023509684041879215
47+
t2 = 0.059737380899876
48+
t3 = 0.10157134842432228
49+
tf = 0.20204744057100849
5050

51-
# test shooting function
52-
s = zeros(eltype(p0), 7)
53-
shoot!(s, p0, t1, t2, t3, tf)
54-
s_guess_sol = [
55-
-0.02456074767656735,
56-
-0.05699760226157302,
57-
0.0018629693253921868,
58-
-0.027013078908634858,
59-
-0.21558816838342798,
60-
-0.0121146739026253,
61-
0.015713236406057297,
62-
]
63-
@test s s_guess_sol atol = 1e-6
64-
65-
# test shooting function with solve from NonlinearSolve
51+
# test shooting resolution with solve from NonlinearSolve
6652
ξ0 = [p0; t1; t2; t3; tf]
6753
shoot!(s, ξ, λ) = shoot!(s, ξ[1:3], ξ[4], ξ[5], ξ[6], ξ[7])
6854
prob = NonlinearProblem(shoot!, ξ0)

0 commit comments

Comments
 (0)