Skip to content

when we "make" without a "clean", ensure that the same net is used #3073

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

Merged
merged 1 commit into from
May 9, 2025

Conversation

zingale
Copy link
Member

@zingale zingale commented May 9, 2025

a common error is to build the executable, do a run, and then change the network by building with NETWORK_DIR set, without a "make clean". This leads to an undefined behavior. This adds a check to ensure that when we make we are using the same network as done originally, and if not, aborts with a message saying to do "make clean"

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

a common error is to build the executable, do a run, and then change
the network by building with NETWORK_DIR set, without a "make clean".
This leads to an undefined behavior.  This adds a check to ensure that
when we make we are using the same network as done originally, and
if not, aborts with a message saying to do "make clean"
@zingale
Copy link
Member Author

zingale commented May 9, 2025

this is a different fix to the same problem identified in #2652

@zingale zingale merged commit 30dd8f7 into AMReX-Astro:development May 9, 2025
25 checks passed
@zingale zingale deleted the add_check_network branch May 9, 2025 21:41
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