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 25, 2023
1 parent 41fc1d9 commit af0a95e
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 af0a95e

Please sign in to comment.