diff --git a/src/engine.c b/src/engine.c index 7af7c056613b07fb0ef7bd5d2c5ba919a2e33f6c..96c0285bfc4a7b833f2382889c2206a408fb339f 100644 --- a/src/engine.c +++ b/src/engine.c @@ -1897,6 +1897,9 @@ void engine_init_particles(struct engine *e) { struct space *s = e->s; + struct clocks_time time1, time2; + clocks_gettime(&time1); + if (e->nodeID == 0) message("Initialising particles"); /* Make sure all particles are ready to go */ @@ -1959,8 +1962,11 @@ void engine_init_particles(struct engine *e) { /* Apply some conversions (e.g. internal energy -> entropy) */ space_map_cells_pre(s, 0, cell_convert_hydro, NULL); + clocks_gettime(&time2); + /* Ready to go */ e->step = -1; + e->wallclock_time = (float)clocks_diff(&time1, &time2); } /**