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

fix retry timelevels when amr.subcycle_mode = None #2821

Closed zingale closed 5 months ago

zingale commented 5 months ago

when we are not doing AMR subcycling and trigger a retry, we will advance all levels again at the new timestep. However, we were not properly resetting the timelevels in the StateData to reflect the new subcycled timestep.

PR summary

PR motivation

PR checklist

zingale commented 5 months ago

This fixes #2820, but we need to make sure that there are not any other issues when doing retry w/o subcycling.