Skip to content

Commit

Permalink
fix tests and format
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Aug 10, 2023
1 parent 29dd028 commit 35abe01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/common_interface/ida.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ isapprox(only(sol.u[begin]), 1, rtol = 1e-3)
# test that solve produced the right answer.
isapprox(only(sol.u[end]), exp(1), rtol = 1e-3)

f_noconverge(out, du, u, p, t) = out .= [du[1]+u[1]/(t-1)]
prob= DAEProblem(f, [1.], [1.], (0,2); differential_vars=[true])
f_noconverge(out, du, u, p, t) = out .= [du[1] + u[1] / (t - 1)]
prob = DAEProblem(f_noconverge, [1.0], [1.0], (0, 2); differential_vars = [true])
sol = solve(prob, IDA())
@test !(sol.retcode in (ReturnCode.Success, ReturnCode.MaxIters)
@test !(sol.retcode in (ReturnCode.Success, ReturnCode.MaxIters))

0 comments on commit 35abe01

Please sign in to comment.