Skip to content

1614 Extend RKIntegratorCore with fixed-step Runge-Kutta methods and optional stage recording - #1615

Merged
HenrZu merged 12 commits into
mainfrom
1614-Extend-RKIntegratorCore
Dec 4, 2026
Merged

HenrZu merged 12 commits into
mainfrom
1614-Extend-RKIntegratorCore

Conversation

@HenrZu

@HenrZu HenrZu commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Changes and Information

Please briefly list the changes (main added features, changed items, or corrected bugs) made:

  • Added a fixed-step mode and predefined methods (Euler, midpoint, Kutta 3, classical RK4) to RKIntegratorCore
  • Added optional recording of the RK stage values of (accepted) steps (set_stage_recording)
  • Renamed adapt_rk.h/.cpp -> runge_kutta.h/.cpp

If need be, add additional information and what the reviewer should look out for in particular:

Merge Request - Guideline Checklist

Please check our git workflow. Use the draft feature if the Pull Request is not yet ready to review.

Checks by code author

  • Every addressed issue is linked (use the "Closes #ISSUE" keyword below).
  • New code adheres to coding guidelines.
  • No large data files have been added (files should in sum not exceed 100 KB, avoid PDFs, Word docs, etc.).
  • Tests are added for new functionality and a local test run was successful (with and without OpenMP).
  • Appropriate documentation within the code (Doxygen) for new functionality has been added in the code.
  • Appropriate external documentation (ReadTheDocs) for new functionality has been added to the online documentation and checked in the preview.
  • Proper attention to licenses, especially no new third-party software with conflicting license has been added.
  • (For ABM development) Checked benchmark results and ran and posted a local test above from before and after development to ensure performance is monitored.

Checks by code reviewer(s)

  • Corresponding issue(s) is/are linked and addressed.
  • Code is clean of development artifacts (no deactivated or commented code lines, no debugging printouts, etc.).
  • Appropriate unit tests have been added, CI passes, code coverage and performance is acceptable (did not decrease).
  • No large data files added in the whole history of commits(files should in sum not exceed 100 KB, avoid PDFs, Word docs, etc.).
  • On merge, add 2-5 lines with the changes (main added features, changed items, or corrected bugs) to the merge-commit-message. This can be taken from the briefly-list-the-changes above (best case) or the separate commit messages (worst case).

@HenrZu HenrZu linked an issue Dec 2, 2026 that may be closed by this pull request
2 tasks done
@codecov

codecov Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.92473% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.53%. Comparing base (760ec38) to head (b720048).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
cpp/memilio/math/runge_kutta.h 98.92% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1615      +/-   ##
==========================================
+ Coverage   97.52%   97.53%   +0.01%     
==========================================
  Files         190      190              
  Lines       16104    16201      +97     
==========================================
+ Hits        15705    15802      +97     
  Misses        399      399              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@HenrZu
HenrZu requested a review from reneSchm December 2, 2026 12:20

@reneSchm reneSchm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A nice addition, though I'd like to discuss some changes.

Comment thread cpp/memilio/math/adapt_rk.h Resolved
Comment thread cpp/memilio/math/runge_kutta.h Resolved
Comment thread cpp/memilio/math/adapt_rk.h Resolved
Comment thread cpp/memilio/math/adapt_rk.h Resolved
Comment thread cpp/memilio/math/adapt_rk.h Resolved
Comment thread cpp/memilio/math/runge_kutta.h Resolved
@HenrZu
HenrZu requested a review from reneSchm December 3, 2026 13:19
Comment thread cpp/memilio/math/runge_kutta.h Resolved
Comment thread cpp/memilio/math/runge_kutta.h Resolved

@reneSchm reneSchm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Alright, this looks almost done. Mostly some docstring fixes, probably the last round of comments.

Comment thread cpp/tests/test_numericalIntegration.cpp Resolved
Comment thread cpp/tests/test_numericalIntegration.cpp Resolved
Comment thread cpp/memilio/math/README.md Resolved
Comment thread cpp/memilio/math/runge_kutta.h Resolved
Comment thread cpp/memilio/math/runge_kutta.h Resolved
Comment thread cpp/memilio/math/runge_kutta.h Resolved
Comment thread cpp/memilio/math/runge_kutta.h Resolved
Comment thread cpp/memilio/math/runge_kutta.h Resolved
Comment thread cpp/memilio/math/runge_kutta.h Resolved
HenrZu and others added 2 commits December 4, 2026 11:32
Co-authored-by: reneSchm <49305466+reneSchm@users.noreply.github.com>

@reneSchm reneSchm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, looks good!

@HenrZu
HenrZu merged commit 97176b9 into main Dec 4, 2026
1 check passed
@HenrZu
HenrZu deleted the 1614-Extend-RKIntegratorCore branch December 4, 2026 11:28
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.

Extend RKIntegratorCore with fixed-step Runge-Kutta methods and optional stage recording

2 participants