Skip to content

Conversation

@Mohit-Lakra
Copy link

Fix issue #120
Changed the Runge–Kutta solver so each stage uses the right weight (bs[ord]) instead of the state index. This stops the
x'' = -x simulation from gaining energy and keeps the sine solution bounded.

@TolisChal
Copy link
Member

Hi @Mohit-Lakra! LGTM! I'm approving it.
@vissarion what do you think?

@Mohit-Lakra Mohit-Lakra changed the title Fix RK4 stage weighting to keep amplitude bounded Fix issue : #120 RK4 stage weighting to keep amplitude bounded Dec 24, 2025
@Mohit-Lakra Mohit-Lakra changed the title Fix issue : #120 RK4 stage weighting to keep amplitude bounded Fix RK4 stage weighting to keep amplitude bounded Dec 24, 2025
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