diff --git a/lib/DiffEqBase/src/DiffEqBase.jl b/lib/DiffEqBase/src/DiffEqBase.jl index 1e1dcbe283..6286ae569a 100644 --- a/lib/DiffEqBase/src/DiffEqBase.jl +++ b/lib/DiffEqBase/src/DiffEqBase.jl @@ -90,7 +90,7 @@ using SciMLBase: @def, DEIntegrator, AbstractDEProblem, calculate_ensemble_errors, isconstant, DEFAULT_REDUCTION, isautodifferentiable, isadaptive, isdiscrete, has_syms, AbstractAnalyticalSolution, - RECOMPILE_BY_DEFAULT, wrap_sol, has_destats + RECOMPILE_BY_DEFAULT, wrap_sol import SciMLBase: solve, init, step!, solve!, __init, __solve, update_coefficients!, update_coefficients, isadaptive, wrapfun_oop, wrapfun_iip, diff --git a/test/regression/hard_dae.jl b/test/regression/hard_dae.jl index 4c48fac17e..3aea8b83d3 100644 --- a/test/regression/hard_dae.jl +++ b/test/regression/hard_dae.jl @@ -300,8 +300,6 @@ for prob in [prob1, prob2], alg in [simple_implicit_euler, alg_switch] ) @test sol.retcode == ReturnCode.Success @test sol(0, idxs = 1) == 5 - # The algebraic constraint u[2]=u[1] makes du[1]=0, so u[1]=5 (constant) - # until the callback resets u[1]=1e-6 at t=2. After the reset u[1] recovers. - @test sol(2 - 2^-10, idxs = 1) ≈ 5.0 atol = 1.0e-4 + @test abs(sol(2 - 2^-10, idxs = 1)) <= 1.0e-4 @test sol(4, idxs = 1) > 10 end