From f2556f04b5b6f07f801ab4ec31a3facafd0b07a2 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Thu, 5 Mar 2020 08:42:56 +0800 Subject: [PATCH] Correct the message printed when metis is not in use and we report the imbalance --- src/engine.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/engine.c b/src/engine.c index 635fee0975..d2ec91fa88 100644 --- a/src/engine.c +++ b/src/engine.c @@ -376,8 +376,14 @@ void engine_repartition_trigger(struct engine *e) { } else { /* Not repartitioning, would that have been done otherwise? */ if (e->verbose) - message("trigger fraction %.3f > %.3f would have repartitioned", - balance, abs_trigger); + if (balance > abs_trigger) { + message("trigger fraction %.3f > %.3f would have repartitioned", + balance, abs_trigger); + } else { + message( + "trigger fraction %.3f =< %.3f would note have repartitioned", + balance, abs_trigger); + } } /* Keep logs of all CPU times and resident memory size for debugging -- GitLab