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

define runtime params in .cpp instead of *_declares.H #2797

Merged

Conversation

zingale
Copy link
Member

@zingale zingale commented Mar 24, 2024

This fixes a potential ODR problem with *_declares.H, which is where we did the actual
definition of the runtime parameters. Now we output a single runtime_params.cpp
that has all of the runtime parameters defined in source instead of headers.

This also removes padding from the struct that we can alternately use for runtime
params

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

Co-authored-by: Eric T. Johnson <yut23@users.noreply.github.com>
@yut23
Copy link
Collaborator

yut23 commented Mar 26, 2024

We should sort namespaces as well, on line 139.

@zingale
Copy link
Member Author

zingale commented Mar 26, 2024

added the sort on namespaces

zingale and others added 2 commits March 26, 2024 15:03
Co-authored-by: Eric T. Johnson <yut23@users.noreply.github.com>
@zingale
Copy link
Member Author

zingale commented Mar 26, 2024

okay, I removed the redundant sorts

@zingale zingale merged commit 760ecc4 into AMReX-Astro:development Mar 26, 2024
23 checks passed
@zingale zingale deleted the params_in_cpp_instead_of_header branch March 26, 2024 19:25
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.

2 participants