BUG: multi-world: only switch on warnComm if needed. See #2529

This commit is contained in:
mattijs
2022-07-07 14:02:31 +01:00
parent 42150cf3fe
commit 66ddf0a104

View File

@ -75,14 +75,14 @@ void Foam::functionObjects::syncObjects::sync()
<< " root:" << root_ << endl;
}
const label oldWarnComm = UPstream::warnComm;
UPstream::warnComm = 0;
if (!Pstream::parRun())
{
return;
}
const label oldWarnComm = UPstream::warnComm;
UPstream::warnComm = 0;
// Send my data to all other processors
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~