From 26bc063a0c28a19bba8ea30e63d9db922dd6dcdd Mon Sep 17 00:00:00 2001 From: "Franz G. Fuchs" Date: Fri, 18 Jan 2019 15:48:05 +0100 Subject: [PATCH] report rank only if size>1 --- opm/autodiff/WellInterface_impl.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/opm/autodiff/WellInterface_impl.hpp b/opm/autodiff/WellInterface_impl.hpp index 071a0ae3e..51d6abf29 100644 --- a/opm/autodiff/WellInterface_impl.hpp +++ b/opm/autodiff/WellInterface_impl.hpp @@ -500,8 +500,10 @@ namespace Opm std::ostringstream ss; ss << " Switching control mode for well " << name() << " from " << modestring[from] - << " to " << modestring[to] - << " on rank " << cc.rank(); + << " to " << modestring[to]; + if (cc.size()>1) { + ss << " on rank " << cc.rank(); + } deferredLogger.info(ss.str()); }