Skip to content

Fix error in RK4 coefficients#29

Merged
mhodzelmans merged 1 commit into
mainfrom
fix_rk4
Jun 26, 2026
Merged

Fix error in RK4 coefficients#29
mhodzelmans merged 1 commit into
mainfrom
fix_rk4

Conversation

@mhodzelmans

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the classic RK4 stage-4 coefficient/time evaluation in gsDynamicRK4::_step_impl, aligning the integrator with the standard Runge–Kutta 4 method (as referenced in the PR description).

Changes:

  • Corrected stage-4 state extrapolation from dt/2 to dt for both linear and nonlinear _step_impl variants.
  • Updated stage-4 force/residual evaluation time from t + dt/2 to t + dt.
  • Minor namespace-closing line formatting normalization.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mhodzelmans mhodzelmans merged commit e09f829 into main Jun 26, 2026
3 of 4 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.

3 participants