Skip to content

Commit 3638b8d

Browse files
committed
Implement suggestion
1 parent c5dc938 commit 3638b8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/time_integration/methods_SSP.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ function get_proposed_dt(integrator::SimpleIntegratorSSP)
261261
end
262262

263263
function unstable_check(dt, u_ode, integrator::SimpleIntegratorSSP)
264-
if !isfinite(dt) || isnan(dt) || !all(isfinite.(u_ode)) || any(isnan.(u_ode))
264+
if !isfinite(dt) || !all(isfinite, u_ode)
265265
@warn "Instability detected. Aborting"
266266
terminate!(integrator)
267267
end

0 commit comments

Comments
 (0)