Skip to content

Commit 99c8fa1

Browse files
fix isnan setup
1 parent 9c12ac6 commit 99c8fa1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/initdt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ function sde_determine_initdt{tType,uType}(u0::uType,t::tType,tdir,dtmax,abstol,
44
d₀ = internalnorm(u0./(abstol.+abs.(u0).*reltol))
55
if !isinplace(prob)
66
f₀ = f(t,u0)
7-
if isnan(f₀)
7+
if any(isnan(f₀))
88
error("First function call for f produced NaNs. Exiting.")
99
end
1010
g₀ = 3g(t,u0)
11-
if isnan(f₀)
11+
if any(isnan(g₀))
1212
error("First function call for g produced NaNs. Exiting.")
1313
end
1414
else

0 commit comments

Comments
 (0)