Skip to content

Commit 9226ad6

Browse files
committed
Up
1 parent 999ec30 commit 9226ad6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/bvproblem.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ osol = solve(op, Vern9())
2121
bvp = SciMLBase.BVProblem{true, SciMLBase.AutoSpecialize}(lotkavolterra, u0map, tspan, parammap; eval_expression = true)
2222

2323
for solver in solvers
24-
println("$solver")
2524
sol = solve(bvp, solver(), dt = 0.01)
2625
@test isapprox(sol.u[end], osol.u[end]; atol = 0.01)
2726
@test sol.u[1] == [1., 2.]
@@ -47,15 +46,15 @@ eqs = [D(D(θ)) ~ -(g / L) * sin(θ)]
4746

4847
u0map ==> π/2, D(θ) => π/2]
4948
parammap = [:L => 1., :g => 9.81]
50-
tspan = (0., 10.)
49+
tspan = (0., 6.)
5150

5251
op = ODEProblem(pend, u0map, tspan, parammap)
5352
osol = solve(op, Vern9())
5453

5554
bvp = SciMLBase.BVProblem{true, SciMLBase.AutoSpecialize}(pend, u0map, tspan, parammap)
5655
for solver in solvers
57-
sol = solve(bvp2, solver(), dt = 0.01)
58-
@test isapprox(sol.u[end],osol.u[end]; atol = 0.01)
56+
sol = solve(bvp, solver(), dt = 0.01)
57+
@test isapprox(sol.u[end], osol.u[end]; atol = 0.01)
5958
@test sol.u[1] ==/2, π/2]
6059
end
6160

0 commit comments

Comments
 (0)