diff --git a/src/engine.c b/src/engine.c index 3508784350bbf30ed4c45c74b4bf15332ca405ea..0b15cc9765b6b59ca82b2bd2c7a8d6c1e9ceebed 100644 --- a/src/engine.c +++ b/src/engine.c @@ -5351,6 +5351,10 @@ void engine_reconstruct_multipoles(struct engine *e) { void engine_makeproxies(struct engine *e) { #ifdef WITH_MPI + /* Let's time this */ + const ticks tic = getticks(); + + /* Useful local information */ const int nodeID = e->nodeID; const struct space *s = e->s; @@ -5378,9 +5382,6 @@ void engine_makeproxies(struct engine *e) { cell_width[2] * cell_width[2]; const double r_max = sqrt(r_max2); - /* Let's time this */ - const ticks tic = getticks(); - /* Prepare the proxies and the proxy index. */ if (e->proxy_ind == NULL) if ((e->proxy_ind = (int *)malloc(sizeof(int) * e->nr_nodes)) == NULL) diff --git a/src/partition.c b/src/partition.c index 98e3e7b670ddd9d849834f1e7f86fa94c2cd335f..361bf9500e9f175c51914afcfe8327c98063f1d9 100644 --- a/src/partition.c +++ b/src/partition.c @@ -868,6 +868,8 @@ void partition_repartition(struct repartition *reparttype, int nodeID, #if defined(WITH_MPI) && defined(HAVE_METIS) + ticks tic = getticks(); + if (reparttype->type == REPART_METIS_VERTEX_COSTS_EDGE_COSTS) { repart_edge_metis(0, 1, 0, nodeID, nr_nodes, s, tasks, nr_tasks); @@ -895,6 +897,10 @@ void partition_repartition(struct repartition *reparttype, int nodeID, } else { error("Impossible repartition type"); } + + if (s->e->verbose) + message("took %.3f %s.", clocks_from_ticks(getticks() - tic), + clocks_getunit()); #else error("SWIFT was not compiled with METIS support."); #endif diff --git a/src/space.c b/src/space.c index 604fbdd86ff4781f59d29f8dce825d653bdda660..a754351b37aef1abc5b50ebed7989f3971d9c21b 100644 --- a/src/space.c +++ b/src/space.c @@ -239,9 +239,16 @@ void space_rebuild_recycle_mapper(void *map_data, int num_elements, * @brief Free up any allocated cells. */ void space_free_cells(struct space *s) { + + ticks tic = getticks(); + threadpool_map(&s->e->threadpool, space_rebuild_recycle_mapper, s->cells_top, s->nr_cells, sizeof(struct cell), 0, s); s->maxdepth = 0; + + if (s->e->verbose) + message("took %.3f %s.", clocks_from_ticks(getticks() - tic), + clocks_getunit()); } /**