Repository navigation
GLEE: report global error via the SciMLBase interface - #4267
Merged
ChrisRackauckas merged 1 commit intoAug 21, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
This was referenced Aug 15, 2026
ChrisRackauckas-Claude
force-pushed
the
globaldiffeq-glee-interface
branch
from
August 17, 2026 11:28
236215f to
fcb3c8c
Compare
ChrisRackauckas-Claude
force-pushed
the
globaldiffeq-glee-interface
branch
from
August 17, 2026 11:34
fcb3c8c to
d9864fe
Compare
Migrates the GLEE/MM5GEE solvers onto the SciMLBase global-error interface (SciML/SciMLBase.jl#1531): has_global_error(alg) = true, and solving returns an ordinary solution (sol.u and sol(t) are the solution) with the estimate in sol.global_error. The extended (y, ε) ArrayPartition solve is split in __solve, and a projecting interpolation reuses the high-order extended dense output so sol(t) returns the solution component at full order (values, derivatives, and the in-place form). global_error_estimate(sol) now returns sol.global_error. Users no longer see the internal ArrayPartition. Requires SciMLBase >= 3.48 (compat bumped); depends on SciML/SciMLBase.jl#1531. Verified locally against the SciMLBase branch: GLEE test suite 91/91 (including a new interface testset), plus smoke tests of the split solution, dense output, derivatives, and the in-place interp form. Co-Authored-By: Chris Rackauckas <[email protected]>
ChrisRackauckas-Claude
force-pushed
the
globaldiffeq-glee-interface
branch
from
August 21, 2026 18:53
d9864fe to
8258c90
Compare
ChrisRackauckas
marked this pull request as ready for review
August 21, 2026 19:29
ChrisRackauckas
added a commit
that referenced
this pull request
Aug 22, 2026
GLEE extends `SciMLBase.has_global_error` (#4267), which SciMLBase only defines from 3.49.0; the compat floor stayed at 3.48. The minimum-version resolution therefore picks SciMLBase 3.48.0 and the package fails to precompile, so `downgrade-sublibraries / test (lib/GlobalDiffEq)` is red on master and on every PR branched from it. Claude-Session: https://claude.ai/code/session_01WiHL8AqRSy2VQZF6j68ovM Co-authored-by: ChrisRackauckas-Claude <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
This was referenced Sep 10, 2026
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.
Important
Ignore this PR until it has been reviewed by @ChrisRackauckas.
Independent PR — a single commit on current
master(GlobalDiffEq v1.4.0), with no dependency on the other GlobalDiffEq PRs; reviewable and mergeable on its own. Its prerequisites are already onmaster/released — SciMLBase's global-error interface (SciML/SciMLBase.jl#1531, in SciMLBase ≥ 3.48) and the GLEE/MM5GEE methods (#3954) — so it stands alone.Summary
Implements the review direction from #3956 — global error as a SciMLBase interface, with the solver splitting its
(y, ε)partition so the user gets an ordinary solution inuand the estimate in the global-error save. Migrates the GLEE/MM5GEE solvers onto the SciMLBase global-error interface (SciML/SciMLBase.jl#1531):SciMLBase.has_global_error(::AbstractGLEEAlgorithm) = true.sol.u[i]is the solution andsol(t)interpolates it; the estimate lives insol.global_error(sol.global_error[i]is the global error ofsol.u[i]). Users no longer see the internal(y, ε)ArrayPartition.__solve, and a small projecting interpolation reuses the high-order extended dense output, sosol(t),sol(t, Val{1})(derivatives), the vector-tform, and the in-place form all return the solution component at full interpolation order.global_error_estimate(sol)returnssol.global_error. SciMLBase compat bumped to3.48.Validation (run locally, current master, released SciMLBase v3.49.0)
ODEDIFFEQ_TEST_GROUP=Core: pass — Basic 1/1, Algorithm traits 3/3, GLEE solvers 91/91 (incl. the new interface testset), BigFloat 2/2.ODEDIFFEQ_TEST_GROUP=QA: pass — 23 passed, 1 pre-existing declared broken.sol.uplain,sol.global_errormatches,sol(t)/sol(t,Val{1})/in-place all project to the solution at full order (GLEE35/MM5GEE match exact to 5+ digits).Follow-up (Phase 3): the
GlobalErrorTransport/GlobalDefectCorrection/GlobalAdjointwrappers (#3956/#3957/#3953) will populate the samesol.global_error, plus the adjoint every-step mode.🤖 Generated with Claude Code