Fix OrdinaryDiffEq 7 solver re-export breakage (import KenCarp4 from OrdinaryDiffEqSDIRK)#151
Merged
ChrisRackauckas merged 1 commit intoJun 7, 2026
Conversation
…sub-package OrdinaryDiffEq 7.0.0 intentionally dropped blanket solver re-exports to cut TTFS (deps 30 -> 6). KenCarp4 now lives in OrdinaryDiffEqSDIRK and is no longer exported by `using OrdinaryDiffEq`, so examples/heat_equation.jl hit `UndefVarError: KenCarp4 not defined` under ODE 7. Import KenCarp4 explicitly from OrdinaryDiffEqSDIRK in the example and add the sub-package to the test [extras]/target and [compat]. The compat `1, 2` keeps the existing `OrdinaryDiffEq = "6, 7"` downgrade space intact. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ignore until reviewed by @ChrisRackauckas.
Problem
OrdinaryDiffEq 7.0.0 intentionally dropped its blanket solver re-exports to cut TTFS (dependency count 30 → 6; documented in ODE's
NEWS.md). The documented downstream migration is to import non-default solvers from their sub-packages.KenCarp4moved toOrdinaryDiffEqSDIRKand is no longer exported byusing OrdinaryDiffEq.examples/heat_equation.jl(run bytest/runtests.jl) uses a bareKenCarp4, so under ODE 7 it fails with:Fix
examples/heat_equation.jl: addusing OrdinaryDiffEqSDIRK: KenCarp4alongside the existingusing OrdinaryDiffEq.Project.toml: addOrdinaryDiffEqSDIRKto[extras], thetesttarget, and[compat]("1, 2", which keeps the existingOrdinaryDiffEq = "6, 7"downgrade space intact — SDIRK 1.x pairs with the ODE 6 sub-package ecosystem, 2.x with ODE 7).Tsit5,Rosenbrock23,ODEProblem,solve,ReturnCode, etc. are still exported by ODE 7, so no other example needed changing. Thesolve(...)calls in the other tutorials are FEniCS's ownsolve, not the ODE solver.Verification
Reproduced and verified the solver path in an isolated depot on Julia 1.10 with OrdinaryDiffEq 7.0.0:
using OrdinaryDiffEq; KenCarp4→UndefVarError: KenCarp4 not defined.using OrdinaryDiffEqSDIRK: KenCarp4resolves;KenCarp4(autodiff = AutoFiniteDiff())constructs andOrdinaryDiffEq.solve(prob, alg, reltol=1e-6, abstol=1e-6)returnsReturnCode.Success(decay teste^{-0.1} ≈ 0.90484matches).heat_equation.jl(using Test/using OrdinaryDiffEq/using OrdinaryDiffEqSDIRK: KenCarp4/using ADTypes: AutoFiniteDiff) loads cleanly and the KenCarp4 solve path passes.OrdinaryDiffEq = 7.0.0,OrdinaryDiffEqSDIRK = 2.7.0,ADTypes = 1.22.0,ExplicitImports.CI caveat: FEniCS.jl wraps Python FEniCS through PyCall and
using FEniCSrequires thecmhyett/julia-fenicscontainer, which is not available in this local environment. The fullPkg.test(which loads FEniCS and runs the meshing/solve body of the example) was therefore not run locally — only the OrdinaryDiffEq import/solve path that this change affects was verified. The remaining body ofheat_equation.jlis unchanged and exercises FEniCS, which is what CI's container provides.Runic v1.7.0 check passes on the edited
.jlfile.🤖 Generated with Claude Code