Skip to content

Commit 697b367

Browse files
committed
Fix CI failings
1 parent 5de3119 commit 697b367

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docs/src/tutorials/inequality.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ lb \leq u \leq ub
1111
where `lb=-4.8161991710010925` and `ub=5.0496477654230745`. So the states must be bigger than `lb` but smaller than `ub`. To solve such problems, we can simply use the `minsol` and `maxsol` functions when defining the boundary value problem in BoundaryValueDiffEq.jl.
1212

1313
```@example inequality
14+
using BoundaryValueDiffEq
1415
tspan = (0.0, pi / 2)
1516
function simplependulum!(du, u, p, t)
1617
θ = u[1]

lib/BoundaryValueDiffEqMIRK/test/mirk_basic_tests.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ end
402402
end
403403
end
404404

405-
@testset "Test maxsol and minsol" begin
405+
@testitem "Test maxsol and minsol" setup=[MIRKConvergenceTests] begin
406406
tspan = (0.0, pi / 2)
407407
function simplependulum!(du, u, p, t)
408408
θ = u[1]
@@ -415,6 +415,8 @@ end
415415
residual[2] = minsol(u, (0.0, pi / 2)) + 4.8161991710010925
416416
end
417417
prob = BVProblem(simplependulum!, bc!, [pi / 2, pi / 2], tspan)
418-
sol = solve(prob, MIRK4(), dt = 0.05)
419-
@test SciMLBase.successful_retcode(sol)
418+
for order in (4, 6)
419+
sol = solve(prob, mirk_solver(Val(order)), dt = 0.05)
420+
@test SciMLBase.successful_retcode(sol)
421+
end
420422
end

0 commit comments

Comments
 (0)