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
298 stars 97 forks source link

fix scaling of the source correction for the shock detection #2711

Closed zingale closed 8 months ago

zingale commented 8 months ago

PR summary

There was an extra dx scaling in here. This also updates the source correction to follow the same logic as use_pslope and makes it a runtime option.

PR motivation

PR checklist