From ac322018fb6a19c2a34d55571b3a899b1f246123 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Sun, 21 Jan 2018 15:01:04 +0000 Subject: [PATCH] fixed variable name that prevented compilation when timers are enabled. --- src/engine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine.c b/src/engine.c index b8a6e12d10..2fd463347c 100644 --- a/src/engine.c +++ b/src/engine.c @@ -4152,7 +4152,7 @@ void engine_init_particles(struct engine *e, int flag_entropy_ICs, clocks_gettime(&time1); /* Start by setting the particles in a good state */ - ticks tic = getticks(); + ticks my_tic = getticks(); if (e->nodeID == 0) message("first init..."); /* Set the particles in a state where they are ready for a run */ space_first_init_parts(s, e->chemistry); @@ -4160,7 +4160,7 @@ void engine_init_particles(struct engine *e, int flag_entropy_ICs, space_first_init_gparts(s); space_first_init_sparts(s); if (e->verbose) - message("took %.3f %s.", clocks_from_ticks(getticks() - tic), + message("took %.3f %s.", clocks_from_ticks(getticks() - my_tic), clocks_getunit()); if (e->nodeID == 0) message("Computing initial gas densities."); -- GitLab