Skip to content

Fix y_error returned from implicit Euler step when non-linear solve fails#753

Open
zhou-haoyang wants to merge 2 commits intopatrick-kidger:mainfrom
zhou-haoyang:fix/y-error-implicit-euler
Open

Fix y_error returned from implicit Euler step when non-linear solve fails#753
zhou-haoyang wants to merge 2 commits intopatrick-kidger:mainfrom
zhou-haoyang:fix/y-error-implicit-euler

Conversation

@zhou-haoyang
Copy link
Copy Markdown

@zhou-haoyang zhou-haoyang commented May 8, 2026

As discussed in #752, ImplicitEuler solver doesn't check the result returned from the non-linear solver and fails to return an infinite y_error, which prevents the stepsize controller from trying a smaller step. This PR fixes this issue by implementing the same logic in the AbstractRungeKutta.

If necessary, we could add a test on this logic for all implicit solvers.

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.

1 participant