AMReX-Astro / Castro

Castro (Compressible Astrophysics): An adaptive mesh, astrophysical compressible (radiation-, magneto-) hydrodynamics simulation code for massively parallel CPU and GPU architectures.
http://amrex-astro.github.io/Castro
Other
292 stars 99 forks source link

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

Closed zingale closed 1 week ago

zingale commented 4 weeks ago

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

zingale commented 4 weeks ago

this fixes a coverity dead code issue.