diff --git a/src/engine.c b/src/engine.c index 80abcd2cafaf2917fee12d44889321a65227a9a1..914e6565fe5485498e046d89e119acf1df7eee21 100644 --- a/src/engine.c +++ b/src/engine.c @@ -3276,6 +3276,7 @@ void engine_check_for_dumps(struct engine *e) { /* Dump */ engine_print_stats(e); + /* and move on */ engine_compute_next_statistics_time(e); @@ -3309,8 +3310,10 @@ void engine_check_for_dumps(struct engine *e) { /* Save some statistics ? */ if (e->ti_end_min > e->ti_next_stats && e->ti_next_stats > 0) { - ti_output = e->ti_next_stats; - type = output_statistics; + if (e->ti_next_stats < ti_output) { + ti_output = e->ti_next_stats; + type = output_statistics; + } } /* Do we want a snapshot? */ diff --git a/src/kick.h b/src/kick.h index b33ee059f56a1e979834cb4bc784d55de2130fbe..f2085bf1f427cf5f15ed0e8791ad1923f0b22bed 100644 --- a/src/kick.h +++ b/src/kick.h @@ -70,7 +70,8 @@ __attribute__((always_inline)) INLINE static void kick_gpart( * @param dt_kick_therm The kick time-step for changes in thermal state. * @param dt_kick_corr The kick time-step for the gizmo-mfv gravity correction. * @param cosmo The cosmological model. - * @param hydro_props The constants used in the scheme + * @param hydro_props The constants used in the scheme. + * @param entropy_floor_props Properties of the entropy floor. * @param ti_start The starting (integer) time of the kick (for debugging * checks). * @param ti_end The ending (integer) time of the kick (for debugging checks).