Skip to content

Commit c69e12b

Browse files
ChrisRackauckasAayushSabharwal
authored andcommitted
Update for use of nanmath default
1 parent 3f6815a commit c69e12b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/structural_transformation/tearing.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,10 @@ prob.f(du, u, pr, tt)
164164
@test du[u[2], u[1] + sin(u[2]) - pr * tt] atol=1e-5
165165

166166
# test the initial guess is respected
167-
@named sys = ODESystem(eqs, t, defaults = Dict(z => Inf))
167+
@named sys = ODESystem(eqs, t, defaults = Dict(z => NaN))
168168
infprob = ODEProblem(structural_simplify(sys), [x => 1.0], (0, 1.0), [p => 0.2])
169-
@test_throws Any infprob.f(du, infprob.u0, pr, tt)
169+
infprob.f(du, infprob.u0, pr, tt)
170+
@test any(isnan, du)
170171

171172
sol1 = solve(prob, RosShamp4(), reltol = 8e-7)
172173
sol2 = solve(ODEProblem{false}((u, p, t) -> [-asin(u[1] - pr * t)],

0 commit comments

Comments
 (0)