Commit 6be6202
authored
Bugfix: CVODE(S) Inequality Constraints (#787)
Fix a bug in the CVODE(S) inequality constraint handling where the
predicted state was used to compute the step size reduction factor
instead of the prior solution which could lead to an incorrect reduction
in the step size or, when the prediction violates the constraints, an
infinitely large step size in the next step attempt. (Fixes #702)
Add a unit test for inequality constraint handling with all the
integrators.
In CVODE(S) and IDA(S), separate inequality constraint check from the
nonlinear solve check.
Add functions to set the maximum number of inequality constraint
failures and get total number of failures (constraint failures are no
longer included in the number of step failures due to a solver failure).
Add a function to get the number of steps modified but not failed due to
constraint violations.
Synchronize some differences between CVODE/CVODES and IDA/IDAS source
and docs.
Add missing return flag names to `CVodeGetReturnFlagName` in CVODES and
`IDAGetReturnFlagName` in IDA.1 parent fe37795 commit 6be6202
File tree
217 files changed
+6306
-2812
lines changed- bindings/sundials4py
- cvodes
- idas
- doc
- cvodes/guide/source/Usage
- cvode/guide/source/Usage
- idas/guide/source/Usage
- ida/guide/source/Usage
- examples
- cvodes/serial
- cvode
- CXX_serial
- F2003_serial
- ginkgo
- serial
- idas
- parallel
- serial
- ida
- cuda
- parallel
- petsc
- serial
- trilinos
- include
- cvodes
- cvode
- idas
- ida
- src
- arkode
- cvodes
- fmod_int32
- fmod_int64
- cvode
- fmod_int32
- fmod_int64
- idas
- fmod_int32
- fmod_int64
- ida
- fmod_int32
- fmod_int64
- test
- unit_tests
- constraints
- cvodes/CXX_serial
- cvode/CXX_serial
- idas/CXX_serial
- ida/CXX_serial
- logging
- problems
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
217 files changed
+6306
-2812
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
13 | 25 | | |
14 | 26 | | |
15 | 27 | | |
16 | 28 | | |
17 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
18 | 38 | | |
19 | 39 | | |
20 | 40 | | |
| |||
55 | 75 | | |
56 | 76 | | |
57 | 77 | | |
58 | | - | |
59 | | - | |
| 78 | + | |
| 79 | + | |
60 | 80 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
66 | 87 | | |
67 | | - | |
68 | | - | |
| 88 | + | |
| 89 | + | |
69 | 90 | | |
70 | | - | |
| 91 | + | |
| 92 | + | |
71 | 93 | | |
72 | 94 | | |
73 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
681 | 684 | | |
682 | 685 | | |
683 | 686 | | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
684 | 726 | | |
685 | 727 | | |
686 | 728 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
| |||
508 | 511 | | |
509 | 512 | | |
510 | 513 | | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
511 | 551 | | |
512 | 552 | | |
513 | 553 | | |
| |||
0 commit comments