Skip to content

Commit

Permalink
refactor: format
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed May 22, 2024
1 parent 9c21376 commit 249e69f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/integrator_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,8 @@ function check_error(integrator::DEIntegrator)
bigtol = max(integrator.opts.reltol, integrator.opts.abstol)
# only declare instability if the dt is very small
# or we have at least one digit of accuracy in the solution
if integrator.dt<eps(integrator.t) || isdefined(integrator, :EEst) && integrator.EEst * bigtol < .1
if integrator.dt < eps(integrator.t) ||

Check warning on line 625 in src/integrator_interface.jl

View check run for this annotation

Codecov / codecov/patch

src/integrator_interface.jl#L625

Added line #L625 was not covered by tests
isdefined(integrator, :EEst) && integrator.EEst * bigtol < 0.1
if integrator.opts.verbose
@warn("Instability detected. Aborting")
end
Expand Down

0 comments on commit 249e69f

Please sign in to comment.