messageStream: Remove confusing argument-based conditional output

This had been used in functionObjects:

    Info(log)<< "messages" << data << ....

in which it is not at all clear what the "log" argument does whereas

    if (log) Info<< "messages" << data << ....

is totally clear and more efficient.
This commit is contained in:
Henry
2015-05-18 11:54:56 +01:00
parent 0beb7e7b56
commit dd04dd9c2c
16 changed files with 38 additions and 63 deletions

View File

@ -158,7 +158,7 @@ void Foam::fieldValues::fieldValueDelta::write()
file()<< obr_.time().value();
}
Info(log_)<< type() << " " << name_ << " output:" << endl;
if (log_) Info<< type() << " " << name_ << " output:" << endl;
bool found = false;
processFields<scalar>(found);