Commit 3d14b7a
committed
Fix Julia 1.10 (LTS) compatibility: conditional import of calc_rosenbrock_differentiation
On Julia 1.10, [sources] in Project.toml is not supported, so
OrdinaryDiffEqDifferentiation resolves from the registry which doesn't
have the new calc_rosenbrock_differentiation OOP function. This caused
module loading failure for OrdinaryDiffEqRosenbrock, cascading to all
test suites (BDF, RKN, etc.) that import the top-level OrdinaryDiffEq.
Fix: conditionally import calc_rosenbrock_differentiation on Julia 1.11+,
and define a simple fallback (calc_tderivative + calc_W, no J reuse)
on Julia 1.10. This means Julia 1.10 users don't get Jacobian reuse
optimization but everything works correctly.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>1 parent 3ab8fe0 commit 3d14b7a
File tree
1 file changed
+15
-1
lines changed- lib/OrdinaryDiffEqRosenbrock/src
1 file changed
+15
-1
lines changedLines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
38 | 52 | | |
39 | 53 | | |
40 | 54 | | |
| |||
0 commit comments