Skip to content
Snippets Groups Projects
Commit c6e69ed6 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Reduced verbosity when running over MPI.

parent 4be976ae
Branches
Tags
1 merge request!312No sorted pair over mpi
...@@ -472,7 +472,7 @@ void space_rebuild(struct space *s, int verbose) { ...@@ -472,7 +472,7 @@ void space_rebuild(struct space *s, int verbose) {
/* Be verbose about this. */ /* Be verbose about this. */
#ifdef SWIFT_DEBUG_CHECKS #ifdef SWIFT_DEBUG_CHECKS
message("re)building space"); if(s->e->nodeID == 0 || verbose) message("re)building space");
fflush(stdout); fflush(stdout);
#endif #endif
...@@ -1014,7 +1014,7 @@ void space_parts_sort(struct space *s, int *ind, size_t N, int min, int max, ...@@ -1014,7 +1014,7 @@ void space_parts_sort(struct space *s, int *ind, size_t N, int min, int max,
if (ind[i - 1] > ind[i]) if (ind[i - 1] > ind[i])
error("Sorting failed (ind[%zu]=%i,ind[%zu]=%i), min=%i, max=%i.", i - 1, error("Sorting failed (ind[%zu]=%i,ind[%zu]=%i), min=%i, max=%i.", i - 1,
ind[i - 1], i, ind[i], min, max); ind[i - 1], i, ind[i], min, max);
message("Sorting succeeded."); if(s->e->nodeID == 0 || verbose) message("Sorting succeeded.");
#endif #endif
/* Clean up. */ /* Clean up. */
...@@ -1192,7 +1192,7 @@ void space_gparts_sort(struct space *s, int *ind, size_t N, int min, int max, ...@@ -1192,7 +1192,7 @@ void space_gparts_sort(struct space *s, int *ind, size_t N, int min, int max,
if (ind[i - 1] > ind[i]) if (ind[i - 1] > ind[i])
error("Sorting failed (ind[%zu]=%i,ind[%zu]=%i), min=%i, max=%i.", i - 1, error("Sorting failed (ind[%zu]=%i,ind[%zu]=%i), min=%i, max=%i.", i - 1,
ind[i - 1], i, ind[i], min, max); ind[i - 1], i, ind[i], min, max);
message("Sorting succeeded."); if(s->e->nodeID == 0 || verbose) message("Sorting succeeded.");
#endif #endif
/* Clean up. */ /* Clean up. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment