cholla-hydro / cholla

A GPU-based hydro code
https://github.com/cholla-hydro/cholla/wiki
MIT License
60 stars 32 forks source link

Fix issue 301 #345

Closed mabruzzo closed 9 months ago

mabruzzo commented 9 months ago

I adjusted logic for clamping the timestep

I also adjusted the logic for incrementing outtime (which tracks the next simulation time when output is written). This change ensures that the simulation will take the same timesteps whether or not OUTPUT_ALWAYS is enabled. (Previously, when the code was compiled with OUTPUT_ALWAYS it might skip the timesteps that were based on the value of the outstep parameter)