Commit ee9d748
committed
Always use order-dependent formula in CVHin, clamp to hub
Instead of falling back to the conservative geometric mean sqrt(hg*hub)
when the order-dependent step formula gives hnew > hub, always use the
formula (2/yddnrm)^(1/(p+1)) and clamp to hub. This prevents overly
small initdt for high-order explicit methods (e.g. DP5 order 5) where
the geometric mean converges very slowly from hlb << hub.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>1 parent a66d63b commit ee9d748
1 file changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
394 | | - | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
395 | 398 | | |
396 | 399 | | |
397 | 400 | | |
398 | 401 | | |
399 | 402 | | |
400 | 403 | | |
| 404 | + | |
401 | 405 | | |
402 | | - | |
| 406 | + | |
403 | 407 | | |
404 | 408 | | |
405 | 409 | | |
| |||
629 | 633 | | |
630 | 634 | | |
631 | 635 | | |
632 | | - | |
633 | | - | |
| 636 | + | |
634 | 637 | | |
635 | 638 | | |
636 | 639 | | |
637 | 640 | | |
638 | 641 | | |
639 | 642 | | |
| 643 | + | |
640 | 644 | | |
641 | | - | |
| 645 | + | |
642 | 646 | | |
643 | 647 | | |
644 | 648 | | |
| |||
0 commit comments