From a375ab95f023fb83f25543d974381e2c87d1cfdc Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Sun, 21 Feb 2016 14:56:52 +0000
Subject: [PATCH] Not too verbose in MPI mode

---
 src/engine.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/engine.c b/src/engine.c
index dcd59bc887..0300eae400 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -2274,7 +2274,8 @@ void engine_init(struct engine *e, struct space *s, float dt, int nr_threads,
   /* Deal with timestep */
   e->timeBase = (timeEnd - timeBegin) / max_nr_timesteps;
   e->ti_current = 0;
-  message("Absolute minimal timestep size: %e", e->timeBase);
+  if (e->nodeID == 0)
+    message("Absolute minimal timestep size: %e", e->timeBase);
 
   if ((e->policy & engine_policy_fixdt) == engine_policy_fixdt) {
     e->dt_min = e->dt_max;
@@ -2285,10 +2286,10 @@ void engine_init(struct engine *e, struct space *s, float dt, int nr_threads,
 
     e->dt_min = e->dt_max = dti_timeline * e->timeBase;
 
-    message("Timestep set to %e", e->dt_max);
+    if (e->nodeID == 0) message("Timestep set to %e", e->dt_max);
   }
 
-  if (e->dt_min < e->timeBase)
+  if (e->dt_min < e->timeBase && e->nodeID == 0)
     error("Minimal timestep smaller than the absolue possible minimum dt=%e",
           e->timeBase);
 
-- 
GitLab