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()); }