Commit abce7331 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Dump the 0th snapshot after particle initialisation not before

parent 3ad59a18
...@@ -455,9 +455,6 @@ int main(int argc, char *argv[]) { ...@@ -455,9 +455,6 @@ int main(int argc, char *argv[]) {
fflush(stdout); fflush(stdout);
} }
/* Write the state of the system before starting time integration. */
if (!dry_run) engine_dump_snapshot(&e);
/* Init the runner history. */ /* Init the runner history. */
#ifdef HIST #ifdef HIST
for (k = 0; k < runner_hist_N; k++) runner_hist_bins[k] = 0; for (k = 0; k < runner_hist_N; k++) runner_hist_bins[k] = 0;
...@@ -493,6 +490,9 @@ int main(int argc, char *argv[]) { ...@@ -493,6 +490,9 @@ int main(int argc, char *argv[]) {
/* Initialise the particles */ /* Initialise the particles */
engine_init_particles(&e, flag_entropy_ICs); engine_init_particles(&e, flag_entropy_ICs);
/* Write the state of the system before starting time integration. */
engine_dump_snapshot(&e);
/* Legend */ /* Legend */
if (myrank == 0) if (myrank == 0)
printf("# %6s %14s %14s %10s %10s %16s [%s]\n", "Step", "Time", "Time-step", printf("# %6s %14s %14s %10s %10s %16s [%s]\n", "Step", "Time", "Time-step",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment