Skip to content
Snippets Groups Projects
Commit 01726daf authored by James Willis's avatar James Willis
Browse files

Time more functions.

parent 9bf478b6
No related branches found
No related tags found
1 merge request!930Parco 2019 debug
...@@ -2032,6 +2032,12 @@ void fof_search_foreign_cells(struct fof_props *props, const struct space *s) { ...@@ -2032,6 +2032,12 @@ void fof_search_foreign_cells(struct fof_props *props, const struct space *s) {
} }
} }
if (verbose)
message(
"Finding max no. of cells + offset IDs"
"took: %.3f %s.",
clocks_from_ticks(getticks() - tic), clocks_getunit());
const int cell_pair_size = num_cells_in * num_cells_out; const int cell_pair_size = num_cells_in * num_cells_out;
if (swift_memalign("fof_group_links", (void **)&props->group_links, if (swift_memalign("fof_group_links", (void **)&props->group_links,
...@@ -2044,6 +2050,8 @@ void fof_search_foreign_cells(struct fof_props *props, const struct space *s) { ...@@ -2044,6 +2050,8 @@ void fof_search_foreign_cells(struct fof_props *props, const struct space *s) {
cell_pair_size * sizeof(struct cell_pair_indices)) != 0) cell_pair_size * sizeof(struct cell_pair_indices)) != 0)
error("Error while allocating memory for FOF cell pair indices"); error("Error while allocating memory for FOF cell pair indices");
ticks tic_pairs = getticks();
/* Loop over cells_in and cells_out for each proxy and find which cells are in /* Loop over cells_in and cells_out for each proxy and find which cells are in
* range of each other to perform the FOF search. Store local cells that are * range of each other to perform the FOF search. Store local cells that are
* touching foreign cells in a list. */ * touching foreign cells in a list. */
...@@ -2086,6 +2094,14 @@ void fof_search_foreign_cells(struct fof_props *props, const struct space *s) { ...@@ -2086,6 +2094,14 @@ void fof_search_foreign_cells(struct fof_props *props, const struct space *s) {
} }
} }
if (verbose)
message(
"Finding local/foreign cell pairs"
"took: %.3f %s.",
clocks_from_ticks(getticks() - tic_pairs), clocks_getunit());
ticks tic_set_roots = getticks();
/* Set the root of outgoing particles. */ /* Set the root of outgoing particles. */
for (int i = 0; i < e->nr_proxies; i++) { for (int i = 0; i < e->nr_proxies; i++) {
...@@ -2106,6 +2122,12 @@ void fof_search_foreign_cells(struct fof_props *props, const struct space *s) { ...@@ -2106,6 +2122,12 @@ void fof_search_foreign_cells(struct fof_props *props, const struct space *s) {
} }
} }
} }
if (verbose)
message(
"Initialising particle roots "
"took: %.3f %s.",
clocks_from_ticks(getticks() - tic_set_roots), clocks_getunit());
if (verbose) if (verbose)
message( message(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment