Skip to content

Commit 2a322f9

Browse files
author
Oscar Smith
authored
shorten timespan on initdt test
This previously was testing that you don't get a warning even though the solution was `Inf`. The only reason it worked at all is that `Euler` is simple enough that it stayed `Inf` rather than going to `NaN` and DiffEqBase incorrectly didn't consider `Inf` to be diverged.
1 parent b8bdf0f commit 2a322f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/interface/ode_initdt_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dt₀ = sol3.t[2]
2121
T = Float32
2222
u0 = T.([1.0; 0.0; 0.0])
2323

24-
tspan = T.((0, 100))
24+
tspan = T.((0, 70))
2525
prob = remake(prob, u0 = u0, tspan = tspan)
2626
@test_nowarn solve(prob, Euler(); dt = T(0.0001))
2727

0 commit comments

Comments
 (0)