Skip to content

Issue #3633 and new Rosenbrock W method Rodas4PW - #3672

Merged
ChrisRackauckas merged 2 commits into
SciML:masterfrom
gstein3m:master
May 25, 2026
Merged

ChrisRackauckas merged 2 commits into
SciML:masterfrom
gstein3m:master

Conversation

@gstein3m

Copy link
Copy Markdown
Contributor

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

Additional context

Proposed changes in derivative_utils are according to issue #3633. Additionally, a new fourth order Rodas4PW is implemented. It is an adaptation of Rodas4P 4th order L-stable Rosenbrock method into a W-method.

gstein3m and others added 2 commits May 25, 2026 10:53
Changes in derivative_utils are according to issue #3633. Additionally, a new method Rodas4PW is implemented: An adaptation of Rodas4P 4th order L-stable Rosenbrock method into a W-method.
@ChrisRackauckas
ChrisRackauckas merged commit 70c39a6 into SciML:master May 25, 2026
123 of 148 checks passed
@oscardssmith

Copy link
Copy Markdown
Member

Very nice! Any benchmarks vs Rosenbrock23/Rodas5P or do we need to wait for the paper?

ChrisRackauckas added a commit that referenced this pull request May 25, 2026
- OrdinaryDiffEqSDIRK 2.6.0 -> 2.7.0: inline ESDIRK/IMEX perform_step
  stages, drop @generated and S type-param (#3676)
- OrdinaryDiffEqRosenbrock 2.2.0 -> 2.3.0: new Rodas4PW W-method,
  derivative_utils fix for issue #3633 (#3672); pin
  OrdinaryDiffEqRosenbrockTableaus compat to "2.1"
- OrdinaryDiffEqRosenbrockTableaus 2.0.0 -> 2.1.0: Rodas4PWTableau (#3672)
- OrdinaryDiffEqDifferentiation 3.1.1 -> 3.2.0: derivative_utils changes
  per issue #3633 (#3672)

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
@gstein3m

Copy link
Copy Markdown
Contributor Author

"Very nice! Any benchmarks vs Rosenbrock23/Rodas5P or do we need to wait for the paper?"

This is a very preliminary result. One-dimensional shallow water equations are simulated using WENO space discretizations. The parameters are set as max_jac_age = 30, jac_reuse_gamma_tol = 4.0 in the first case, and to default values in the second case.
The first figure shows results with 200 space discretization points and sparse Jacobian, the second figure shows results with 75 space points and dense Jacobian.
It appears difficult to find good cases where W methods are really more efficient than, for example, Rodas5P.

wp_examples_mit_jac_200 wp_examples_ohne_75_0

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.

3 participants