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

address some clang-tidy issues for SDC #2597

Merged
merged 5 commits into from
Oct 5, 2023

Conversation

zingale
Copy link
Member

@zingale zingale commented Oct 3, 2023

PR summary

PR motivation

PR checklist

  • test suite needs to be run on this PR
  • this PR will change answers in the test suite to more than roundoff level
  • all newly-added functions have docstrings as per the coding conventions
  • the CHANGES file has been updated, if appropriate
  • if appropriate, this change is described in the docs

@@ -95,7 +95,6 @@ Castro::do_advance_sdc (Real time,
#endif

if (apply_sources()) {
#ifndef AMREX_USE_GPU
Copy link
Member

Choose a reason for hiding this comment

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

Do you know why this was ifdef'd out?

Copy link
Member Author

Choose a reason for hiding this comment

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

well, it doesn't work with GPUs, so we just didn't want to compile it, but this entire block is already wrapped in an #ifndef AMREX_USE_GPU, so clang-tidy said this was a dupe.

@zingale zingale merged commit 9701338 into AMReX-Astro:development Oct 5, 2023
@zingale zingale deleted the some_sdc_clang_tidy branch October 5, 2023 18:08
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