diff --git a/examples/main.c b/examples/main.c index e5ab33b7e555bd5a2cd5f14fd3a45cc8361bbd45..0fd9d6eccc7e71e35dd2636e642c68256de72f61 100644 --- a/examples/main.c +++ b/examples/main.c @@ -1006,8 +1006,12 @@ int main(int argc, char *argv[]) { /* Initialise the particles */ engine_init_particles(&e, flag_entropy_ICs, clean_smoothing_length_values); - /* Write the state of the system before starting time integration. */ + /* Write the state of the system before starting time integration. */ +#ifdef WITH_LOGGER + engine_dump_index(&e); +#else engine_dump_snapshot(&e); +#endif engine_print_stats(&e); /* Is there a dump before the end of the first time-step? */ diff --git a/src/hydro/Gadget2/hydro.h b/src/hydro/Gadget2/hydro.h index e617dc78d6e0ffe43ec3d84a9d3e5a6ce9d8fd45..6232f3d32784dbe5cf45fc3589a8b44826c33633 100644 --- a/src/hydro/Gadget2/hydro.h +++ b/src/hydro/Gadget2/hydro.h @@ -744,7 +744,6 @@ __attribute__((always_inline)) INLINE static void hydro_first_init_part( p->time_bin = 0; p->last_offset = 0; - xp->last_output = 0; xp->v_full[0] = p->v[0]; xp->v_full[1] = p->v[1]; xp->v_full[2] = p->v[2];