report rank only if size>1

This commit is contained in:
Franz G. Fuchs 2019-01-18 15:48:05 +01:00
parent 80747fc123
commit 26bc063a0c

View File

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