From c0d792d8760b7b5dcb7e60080c049f2171a11c00 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Thu, 13 Jun 2019 21:51:38 +0200 Subject: [PATCH] Update the timers for the new stars re-sorting task. --- src/runner.c | 4 ++-- src/timers.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/runner.c b/src/runner.c index 5bc5fede08..a726f1fc24 100644 --- a/src/runner.c +++ b/src/runner.c @@ -1197,7 +1197,7 @@ void runner_do_star_formation(struct runner *r, struct cell *c, int timer) { * @param c The top-level cell to run on. * @param timer Are we timing this? */ -void runner_do_stars_resort(struct runner *r, struct cell *c, int timer) { +void runner_do_stars_resort(struct runner *r, struct cell *c, const int timer) { #ifdef SWIFT_DEBUG_CHECKS if (c->nodeID != r->e->nodeID) error("Task must be run locally!"); @@ -1212,7 +1212,7 @@ void runner_do_stars_resort(struct runner *r, struct cell *c, int timer) { cell_clear_flag(c, cell_flag_do_stars_resort); } - if (clock) TIMER_TOC(timer_dostars_resort); + if (timer) TIMER_TOC(timer_do_stars_resort); } /** diff --git a/src/timers.h b/src/timers.h index abcd1019a7..e36aea2c62 100644 --- a/src/timers.h +++ b/src/timers.h @@ -107,6 +107,7 @@ enum { timer_step, timer_logger, timer_do_stars_sort, + timer_do_stars_resort, timer_fof_self, timer_fof_pair, timer_count, -- GitLab