Skip to content

fix(ode): norm was not accumulating or resetting - #3315

Open
bcaddy wants to merge 1 commit into
kokkos:developfrom
bcaddy:dev-norm-fix-2
Open

bcaddy wants to merge 1 commit into
kokkos:developfrom
bcaddy:dev-norm-fix-2

Conversation

@bcaddy

@bcaddy bcaddy commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Summary

norm_new in NewtonSolve was not accumulating on each inner loop iteration and wasn't being reset to zero between outer loop iterations. Fixed both issues.

This was causing an issue when I was using the solver. I'm solving a system of ODEs as part of a larger time step and if I varied the sizes of the larger time steps but evolved to the same time it would cause significant differences in the results.

Previous PRs

This was previously posted in PR #3276 and reverted in PR #3304 due to some failing tests I couldn't reproduce. Hopefully once PR #3262 is merged this will pass the tests

`norm_new` in `NewtonSolve` was not accumulating on each inner loop
iteration and wasn't being reset to zero between outer loop iterations.
Fixed both issues.

Also added a test that catches this bug.

Signed-off-by: Robert Caddy <rcaddy@princeton.edu>

This branch has not been deployed

No deployments
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