AMReX-Combustion / PeleLMeX

An adaptive mesh hydrodynamics simulation code for low Mach number reacting flows without level sub-cycling.
https://amrex-combustion.github.io/PeleLMeX/
BSD 3-Clause "New" or "Revised" License
24 stars 36 forks source link

Allow restart with fewer levels than previous checkpoint #178

Closed baperry2 closed 1 year ago

baperry2 commented 1 year ago

The checkpoint file reader was failing if the desired number of levels in the restarted simulation is less than the number of levels in the checkpoint file, as the pressure and typical values get read in at the wrong location in the file. This PR fixes that.