Commit 668e22f
Fix handle_dt! for discrete solvers and backward compat
The two-arg handle_dt!(integrator, dt) must also check
iszero(integrator.dt) before auto-resetting, since discrete
solvers set _dt=1 even when dt=nothing.
Also preserve the original one-arg handle_dt! with the old
iszero(integrator.dt) check for backward compatibility with
DelayDiffEq and other packages.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>1 parent 67bc8a6 commit 668e22f
1 file changed
+19
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
714 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
715 | 732 | | |
716 | | - | |
| 733 | + | |
717 | 734 | | |
718 | 735 | | |
719 | 736 | | |
| |||
0 commit comments