Skip to content

Add Friedli Exponential Runge-Kutta solver - #4481

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
dhairya-motta:dhairya/add-friedli-exprk
Sep 12, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
dhairya-motta:dhairya/add-friedli-exprk

Conversation

@dhairya-motta

@dhairya-motta dhairya-motta commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Implements the 4th-order Friedli Exponential Runge-Kutta (ExpRK) method for stiff semilinear problems $\dot{u} = Au + g(t, u)$, based on A. Friedli (1978) ("Verallgemeinerte Runge-Kutta Verfahren zur Lösung steifer Differentialgleichungssysteme").

The implementation follows the established architecture in OrdinaryDiffEqExponentialRK.jl (closely mirroring HochOst4):

  • Algorithm & Exports: Defined the Friedli algorithm struct in algorithms.jl, registered its order (alg_order = 4) and dt-changeability in alg_utils.jl, and exported Friedli in OrdinaryDiffEqExponentialRK.jl.
  • Caches: Added FriedliCache (in-place) and FriedliConstantCache (out-of-place) in exponential_rk_caches.jl with pre-allocated stage buffers and phi-operator operators ($\varphi_1, \varphi_2, \varphi_3$).
  • Integrator Stepping: Implemented perform_step! for both cache types in exponential_rk_perform_step.jl supporting both full matrix exponentials and Krylov approximations.
  • Documentation: Registered Friedli in both semiimplicit/ExponentialRK.md and semilinear/ExponentialRK.md, as well as lib/OrdinaryDiffEqExponentialRK/README.md.

Verification

  • Convergence tests: Added Friedli to linear_nonlinear_convergence_tests.jl, confirming expected 4th-order convergence rates for both in-place (iip) and out-of-place (oop) problems.
  • Krylov tests: Added Friedli to linear_nonlinear_krylov_tests.jl validating integration with Krylov subspace exponential approximations.
  • Allocation tests: Added Friedli to qa/allocation_tests.jl to ensure zero unexpected allocations in hot loops.

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the contributor guidelines, in particular the SciML Style Guide and COLPRAC.
  • Any new documentation only uses public API

AI disclosure: Assisted by Google Antigravity.

@ChrisRackauckas
ChrisRackauckas merged commit a44c3a7 into SciML:master Sep 12, 2026
130 of 133 checks passed
ChrisRackauckas added a commit that referenced this pull request Sep 13, 2026
- qa: allow JET 0.12 in OrdinaryDiffEqCore/BDF/NonlinearSolve QA envs (#4516)
- Add regression tests for issues verified fixed in recent releases (#4517)
- fix: save all simultaneous events in a VCC (#4129)
- Add 4th-order Friedli Exponential Runge-Kutta solver (#4481)
- Release DiffEqBase 7.21.1 (#4521)
- Fix BDF rejected-step controller for backward (tdir < 0) solves (#4519)
- Require OrdinaryDiffEqCore 4.17.1 where its new internals are used (#4525)
- OrdinaryDiffEqDefault: require OrdinaryDiffEqCore 4.17.1 (#4520)
- Add adaptive step size control to SDC (#4346)
- Allow JET 0.12 in every QA test environment (#4513)



Agent-Harness: Claude Code
Agent-Model: claude-opus-5[1m]
Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R

Co-authored-by: Claude Opus 5 (1M context) <[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