From 4511d85d39a6c25a81b404f3aba395b15353f170 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Tue, 23 Feb 2016 09:58:47 +0000 Subject: [PATCH] Less verbose engine_init() in MPI mode --- src/engine.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine.c b/src/engine.c index bef06254e4..076561a1bf 100644 --- a/src/engine.c +++ b/src/engine.c @@ -2175,7 +2175,8 @@ void engine_init(struct engine *e, struct space *s, float dt, int nr_threads, int home = numa_node_of_cpu(sched_getcpu()), half = nr_cores / 2; bool done = false, swap_hyperthreads = hyperthreads_present(); - if (swap_hyperthreads) message("prefer physical cores to hyperthreads"); + if (swap_hyperthreads && nodeID == 0) + message("prefer physical cores to hyperthreads"); while (!done) { done = true; @@ -2272,7 +2273,8 @@ void engine_init(struct engine *e, struct space *s, float dt, int nr_threads, engine_print_policy(e); /* Print information about the hydro scheme */ - message("Hydrodynamic scheme: %s", SPH_IMPLEMENTATION); + if (e->nodeID == 0) + message("Hydrodynamic scheme: %s", SPH_IMPLEMENTATION); /* Deal with timestep */ e->timeBase = (timeEnd - timeBegin) / max_nr_timesteps; -- GitLab