Skip to content

Commit

Permalink
test(fix): test ReturnCode of sol when DFBDF is used
Browse files Browse the repository at this point in the history
  • Loading branch information
ven-k committed Oct 23, 2023
1 parent 6520fd0 commit c9b8eb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/components.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ u0 = states(sys) .=> 0
@test_nowarn ODEProblem(sys, u0, (0, 10.0))
@test_nowarn ODAEProblem(sys, u0, (0, 10.0))
prob = DAEProblem(sys, Differential(t).(states(sys)) .=> 0, u0, (0, 0.5))
@test_nowarn sol = solve(prob, DFBDF())
sol = solve(prob, DFBDF())
@test sol.retcode == SciMLBase.ReturnCode.Success

sys2 = structural_simplify(ll2_model)
@test length(equations(sys2)) == 3
Expand Down

0 comments on commit c9b8eb3

Please sign in to comment.