Commit 934dc0a
committed
Fix StiffInitDt DAE guard, type stability with BigFloat, and Julia 1.10 compatibility
- Change StiffInitDt DAE guard from 0.001*tdist to max(smalldt, dtmin).
The old value was too large for DAEs with inconsistent initial conditions
(e.g., ROBER with tspan (0, 1e5) gave dt=100, causing solver instability).
Fixes OrdinaryDiffEqNonlinearSolve and OrdinaryDiffEqRosenbrock failures.
- Fix type stability when u0 is BigFloat but tspan is Float64: hub_inv and
yddnrm accumulations were promoted to BigFloat by u0 element operations,
contaminating the step size h and causing t+h to become BigFloat. This
broke FunctionWrappersWrappers which only has Float64 time wrappers.
Fix: convert hub_inv, yddnrm, and f call time arguments back to _tType.
Fixes InterfaceIV precision_mixing test failures.
- Change BDF test to use `import OrdinaryDiffEqCore` with qualified access
instead of `using OrdinaryDiffEqCore: initdt_alg` which fails on Julia 1.10
where unexported names cannot be accessed via `using M: name` syntax.
Fixes OrdinaryDiffEqBDF LTS test failures.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>1 parent d114d04 commit 934dc0a
2 files changed
Lines changed: 28 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | | - | |
398 | | - | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
399 | 401 | | |
400 | | - | |
401 | | - | |
402 | | - | |
| 402 | + | |
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
524 | 527 | | |
525 | 528 | | |
526 | 529 | | |
| |||
559 | 562 | | |
560 | 563 | | |
561 | 564 | | |
562 | | - | |
| 565 | + | |
563 | 566 | | |
564 | 567 | | |
565 | 568 | | |
| |||
630 | 633 | | |
631 | 634 | | |
632 | 635 | | |
633 | | - | |
| 636 | + | |
634 | 637 | | |
635 | 638 | | |
636 | 639 | | |
637 | | - | |
| 640 | + | |
638 | 641 | | |
639 | 642 | | |
640 | 643 | | |
| |||
685 | 688 | | |
686 | 689 | | |
687 | 690 | | |
688 | | - | |
689 | | - | |
| 691 | + | |
| 692 | + | |
690 | 693 | | |
691 | | - | |
692 | | - | |
693 | | - | |
| 694 | + | |
694 | 695 | | |
695 | 696 | | |
696 | 697 | | |
| |||
736 | 737 | | |
737 | 738 | | |
738 | 739 | | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
739 | 743 | | |
740 | 744 | | |
741 | 745 | | |
| |||
762 | 766 | | |
763 | 767 | | |
764 | 768 | | |
765 | | - | |
| 769 | + | |
766 | 770 | | |
767 | 771 | | |
768 | 772 | | |
| |||
787 | 791 | | |
788 | 792 | | |
789 | 793 | | |
790 | | - | |
| 794 | + | |
791 | 795 | | |
792 | 796 | | |
793 | 797 | | |
| |||
799 | 803 | | |
800 | 804 | | |
801 | 805 | | |
802 | | - | |
| 806 | + | |
803 | 807 | | |
804 | 808 | | |
805 | | - | |
| 809 | + | |
806 | 810 | | |
807 | 811 | | |
808 | 812 | | |
| |||
0 commit comments