We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2239fc8 + d5387ec commit 8f1d760Copy full SHA for 8f1d760
lib/OrdinaryDiffEqCore/src/initdt.jl
@@ -127,8 +127,11 @@
127
# Better than checking any(x->any(isnan, x), f₀)
128
# because it also checks if partials are NaN
129
# https://discourse.julialang.org/t/incorporating-forcing-functions-in-the-ode-model/70133/26
130
- if integrator.opts.verbose && isnan(d₁)
131
- @warn("First function call produced NaNs. Exiting. Double check that none of the initial conditions, parameters, or timespan values are NaN.")
+ if isnan(d₁)
+ if integrator.opts.verbose
132
+ @warn("First function call produced NaNs. Exiting. Double check that none of the initial conditions, parameters, or timespan values are NaN.")
133
+ end
134
+
135
return tdir * dtmin
136
end
137
0 commit comments