Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dorman-Prince 5(4) implementation in C #755

Merged
merged 21 commits into from
Jan 14, 2025

Conversation

dmitry-kabanov
Copy link
Collaborator

Changes:

  • Add IVP::dopri5c implementation (C implementation of a Dorman--Prince 5(4) method)
  • Fix a memory leak in AllocationTracker
  • Add a (gcc-supported) destructor for a shared library liboif_dispatch that warns about running a non-optimized build
    (to help avoiding situations when a performance study is done against a debug guild)

The bug was connected to using wrong arrays for RK stages:
not the internal vector but the one passed by the user.
Add GCC- (and Clang-) specific destructor to the dispatch library
to warn users about running a non-optimized build.
A non-optimized build is much slower than an optimized one,
so that they should not be used in production.

Mainly, this warning is useful for me, as I always forget to rebuild.
@dmitry-kabanov dmitry-kabanov added lang-C Everything related to the C programming language if-IVP Interface for Initial-Value Problems for ODEs labels Jan 14, 2025
@dmitry-kabanov dmitry-kabanov merged commit a6877a5 into MaRDI4NFDI:main Jan 14, 2025
5 checks passed
@dmitry-kabanov dmitry-kabanov deleted the 14-c-runge-kutta branch January 14, 2025 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
if-IVP Interface for Initial-Value Problems for ODEs lang-C Everything related to the C programming language
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant