Skip to content

GLEE: report global error via the SciMLBase interface - #4267

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:globaldiffeq-glee-interface
Aug 21, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:globaldiffeq-glee-interface

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Aug 15, 2026 •

Copy link
Copy Markdown
Member

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 on master/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 in u and 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.
  • Solving returns an ordinary solution: sol.u[i] is the solution and sol(t) interpolates it; the estimate lives in sol.global_error (sol.global_error[i] is the global error of sol.u[i]). Users no longer see the internal (y, ε) ArrayPartition.
  • The extended partitioned solve is split in __solve, and a small projecting interpolation reuses the high-order extended dense output, so sol(t), sol(t, Val{1}) (derivatives), the vector-t form, and the in-place form all return the solution component at full interpolation order.
  • global_error_estimate(sol) returns sol.global_error. SciMLBase compat bumped to 3.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.
  • Smoke tests on the unstable Prince42 problem for GLEE23/24/35 + MM5GEE: sol.u plain, sol.global_error matches, 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/GlobalAdjoint wrappers (#3956/#3957/#3953) will populate the same sol.global_error, plus the adjoint every-step mode.

🤖 Generated with Claude Code

@ChrisRackauckas-Claude
ChrisRackauckas-Claude force-pushed the globaldiffeq-glee-interface branch from 236215f to fcb3c8c Compare August 17, 2026 11:28
@ChrisRackauckas-Claude ChrisRackauckas-Claude changed the title GLEE: report global error via the SciMLBase interface (depends on SciMLBase#1531) GLEE: report global error via the SciMLBase interface Aug 17, 2026
@ChrisRackauckas-Claude
ChrisRackauckas-Claude force-pushed the globaldiffeq-glee-interface branch from fcb3c8c to d9864fe Compare August 17, 2026 11:34
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
ChrisRackauckas-Claude force-pushed the globaldiffeq-glee-interface branch from d9864fe to 8258c90 Compare August 21, 2026 18:53
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review August 21, 2026 19:29
@ChrisRackauckas
ChrisRackauckas merged commit 13da423 into SciML:master Aug 21, 2026
108 of 131 checks passed
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants