Commit 879c96d
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]>1 parent 2e44205 commit 879c96d
2 files changed
+2
-4
lines changed| 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