PrincetonUniversity / athena

Athena++ radiation GRMHD code and adaptive mesh refinement (AMR) framework
https://www.athena-astro.app
BSD 3-Clause "New" or "Revised" License
226 stars 122 forks source link

Fixed Schwarzschild cell-width calculation #614

Closed c-white closed 2 months ago

c-white commented 2 months ago

x1-array was accidentally used in place of x2-array, but indexed with j. As cell widths only affect relativity for timestep purposes, and as most simulations use horizon-penetrating coordinates, this had little effect except when non-square MeshBlocks would cause crashes.

Fixes #613