Skip to content
Snippets Groups Projects
Commit 64dd5e1b authored by lhausamm's avatar lhausamm Committed by Loic Hausammann
Browse files

Write index at begining

parent 65748ee6
Branches
Tags
1 merge request!502Logger
...@@ -1006,8 +1006,12 @@ int main(int argc, char *argv[]) { ...@@ -1006,8 +1006,12 @@ int main(int argc, char *argv[]) {
/* Initialise the particles */ /* Initialise the particles */
engine_init_particles(&e, flag_entropy_ICs, clean_smoothing_length_values); 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); engine_dump_snapshot(&e);
#endif
engine_print_stats(&e); engine_print_stats(&e);
/* Is there a dump before the end of the first time-step? */ /* Is there a dump before the end of the first time-step? */
......
...@@ -744,7 +744,6 @@ __attribute__((always_inline)) INLINE static void hydro_first_init_part( ...@@ -744,7 +744,6 @@ __attribute__((always_inline)) INLINE static void hydro_first_init_part(
p->time_bin = 0; p->time_bin = 0;
p->last_offset = 0; p->last_offset = 0;
xp->last_output = 0;
xp->v_full[0] = p->v[0]; xp->v_full[0] = p->v[0];
xp->v_full[1] = p->v[1]; xp->v_full[1] = p->v[1];
xp->v_full[2] = p->v[2]; xp->v_full[2] = p->v[2];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment