Commit c3ae10b
Use SciMLBase.set_mooncakeoriginator_if_mooncake for Mooncake AD support (#756)
* Use SciMLBase.set_mooncakeoriginator_if_mooncake for Mooncake AD support
NonlinearSolveBase was passing `SciMLBase.ChainRulesOriginator()` directly without
wrapping it in `set_mooncakeoriginator_if_mooncake`. This caused the `originator`
to remain as `ChainRulesOriginator` when using Mooncake AD, instead of being
converted to `MooncakeOriginator`.
This fix:
- Removes the unused local `set_mooncakeoriginator_if_mooncake` definition from utils.jl
- Updates solve.jl to wrap originator with `SciMLBase.set_mooncakeoriginator_if_mooncake`
This enables proper Mooncake AD support detection in downstream packages like
SciMLSensitivity.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
* Remove stale AbstractMessageLevel import
---------
Co-authored-by: ChrisRackauckas <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>1 parent 2e44205 commit c3ae10b
File tree
3 files changed
+3
-5
lines changed- lib/NonlinearSolveBase/src
3 files changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
324 | | - | |
325 | 323 | | |
0 commit comments