@@ -29,7 +29,8 @@ let sys = IRODESystem(ddt_nonlinear; debug_config=(; store_ss_levels=true))
2929
3030 for sol in solve_dae (sys, [0. ], [1. ], (0. , 1. ); reltol= 1e-6 )
3131 @test all (isapprox .(sol[sys. x], exp .(sol. t), atol= 1e-4 ))
32- @test all (isapprox .(sol[sys. y], exp .(sol. t), atol= 1e-4 ))
32+ # DAECompiler incorrectly tries to interpolate based on algebraic vars
33+ @test_broken all (isapprox .(sol[sys. y], exp .(sol. t), atol= 1e-4 ))
3334 end
3435
3536 for level in dbg. ss_levels
5051let sys = IRODESystem (ddt_nonlinear2; debug_config= (; store_ss_levels= true ))
5152 dbg = getfield (sys, :debug_config )
5253
53- for sol in (solve_dae (sys, [0. , 0. ], [1. , 1. ], (0. , 1. ))... ,
54- solve_ode (sys, [1. , 1. , 0. , 0. ], (0. , 1. ))... , )
54+ for sol in solve_dae (sys, [0. , 0. ], [1. , 1. ], (0. , 1. ))
55+ @test all (isapprox .(sol[sys. x], exp .(sol. t), atol= 1e-2 ))
56+ @test all (isapprox .(sol[sys. y], exp .(sol. t), atol= 1e-2 ))
57+ end
58+ for sol in solve_ode (sys, [1. , 1. , 0. , 0. ], (0. , 1. ))
5559 @test all (isapprox .(sol[sys. x], exp .(sol. t), atol= 1e-2 ))
5660 @test all (isapprox .(sol[sys. y], exp .(sol. t), atol= 1e-2 ))
5761 end
0 commit comments