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

only compute hydro version of shock variable for hybrid Riemann #2865

Merged
merged 3 commits into from
Jun 24, 2024

Conversation

zingale
Copy link
Member

@zingale zingale commented Jun 5, 2024

in the CTU solver, we compute a local version of the shock flag used just for the Riemann solver. This removes the SHOCK_VAR check, since we only need this local version if we are doing the hybrid Riemann solve. This local shk array is never used for the StateData USHK flag.

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

in the CTU solver, we compute a local version of the shock flag
used just for the Riemann solver.  This removes the SHOCK_VAR
check, since we only need this local version if we are doing the
hybrid Riemann solve.  This local shk array is never used for the
StateData USHK flag.
@zingale
Copy link
Member Author

zingale commented Jun 5, 2024

this fixes a coverity dead code issue.

@zingale zingale marked this pull request as ready for review June 5, 2024 13:29
@zingale zingale added the hydro label Jun 5, 2024
@zingale zingale merged commit 82b3d4e into AMReX-Astro:development Jun 24, 2024
25 checks passed
@zingale zingale deleted the clean_up_hydro_shock branch June 24, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants