Skip to content

Allow step_limiter and stage_limiter solve kwargs - #1466

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/allow-step-stage-limiter-kwargs
Jul 24, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/allow-step-stage-limiter-kwargs

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

This PR should be ignored until reviewed by @ChrisRackauckas.

Summary

Master / PR IntegrationTest OrdinaryDiffEq.jl/Integrators fails because
solve(...; step_limiter=...) is rejected by SciMLBase keyword validation:

Unrecognized keyword arguments: [:step_limiter]

OrdinaryDiffEq exposes solve-level stage/step limiters; those names were never
added to allowedkeywords.

Changes

  • Add :step_limiter and :stage_limiter to allowedkeywords in src/errors.jl.
  • Unit test that validation accepts them and still rejects unknown kwargs.

Related

Seen on SciMLBase draft PRs #1462/#1463/#1464 Integrators downstream jobs;
not caused by those PRs (fails the same way against current master).

OrdinaryDiffEq solver-level limiters are passed as `solve(...; step_limiter=...,
stage_limiter=...)`. Without these names in `allowedkeywords`, SciMLBase
rejects them as unrecognized and Integrators downstream tests fail with
`Unrecognized keyword arguments: [:step_limiter]`.

Co-Authored-By: Chris Rackauckas <[email protected]>
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

Opened while babysitting #1462/#1463/#1464. Unblocks OrdinaryDiffEq Integrators downstream on those PRs once this lands (or they rebase after merge).

Local: checkkwargs accepts :step_limiter/:stage_limiter; still rejects unknown kwargs. function_building_error_messages limiter testset passes.

@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review July 24, 2026 06:14
@ChrisRackauckas
ChrisRackauckas merged commit 272a481 into SciML:master Jul 24, 2026
45 of 63 checks passed
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