Commit 7fae13b
Add Enzyme extension to make AbstractSensitivityAlgorithm inactive
Fixes SciMLSensitivity.jl#1225: When `sensealg` is passed to ODEProblem
constructor, Enzyme would fail trying to differentiate through the sensitivity
algorithm object. This adds an inactive_type rule for AbstractSensitivityAlgorithm
to treat it as constant during Enzyme differentiation.
This is the correct place for this fix since AbstractSensitivityAlgorithm is
defined in SciMLBase, avoiding type piracy that would occur if the rule were
defined in SciMLSensitivity.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 820ddfb commit 7fae13b
2 files changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments