BUG: messageStream: select output under communicator

This commit is contained in:
mattijs
2014-01-07 15:54:57 +00:00
parent ff50972634
commit 3e73a42545

View File

@ -188,12 +188,12 @@ Foam::OSstream& Foam::messageStream::operator()
Foam::OSstream& Foam::messageStream::operator()(const bool output) Foam::OSstream& Foam::messageStream::operator()(const bool output)
{ {
if (output && level) if (level)
{ {
bool collect = (severity_ == INFO || severity_ == WARNING); bool collect = (severity_ == INFO || severity_ == WARNING);
// Report the error // Report the error
if (collect) if (!output && collect)
{ {
return Snull; return Snull;
} }