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

Fix compilation warnings with SUNDIALS 7.1.0 #2990

Merged
merged 6 commits into from
Nov 6, 2024

Conversation

Steven-Roberts
Copy link
Contributor

In SUNDIALS 7.1.0, many of the functions that start with ARKstep were deprecated and renamed with ARKode prefix. This fixes the compilations warnings.

Tested with SUNDIALS versions 5.8.0, 6.7.0, 7.0.0, and 7.1.0.

Copy link
Member

@ZedThree ZedThree left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @Steven-Roberts! Please could you just fix a couple of suggestions from clang-tidy?

include/bout/sundials_backports.hxx Outdated Show resolved Hide resolved
src/solver/impls/arkode/arkode.cxx Outdated Show resolved Hide resolved
@Steven-Roberts
Copy link
Contributor Author

@ZedThree @bendudson I think this should be ready to merge. Let me know if anything else needs to be done.

@dschwoerer
Copy link
Contributor

@Steven-Roberts CI found this error:

/home/runner/work/BOUT-dev/BOUT-dev/src/solver/impls/arkode/arkode.cxx:223:47: error: ‘sunbooleantype’ does not name a type; did you mean ‘booleantype’?

Should int be used instead?

@Steven-Roberts
Copy link
Contributor Author

Whoops, that's right. I'll see if it passes now.

Copy link
Contributor

@dschwoerer dschwoerer left a comment

Choose a reason for hiding this comment

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

CI failures are due to permission errors, as it runs from a fork.

Everything else looks good 👍

@dschwoerer dschwoerer mentioned this pull request Nov 6, 2024
@bendudson bendudson merged commit 36e3da5 into boutproject:next Nov 6, 2024
14 of 16 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.

5 participants