mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
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:
@ -701,7 +701,7 @@ void Foam::fieldValues::faceSource::write()
|
||||
{
|
||||
file() << tab << totalArea_;
|
||||
}
|
||||
Info(log_)<< " total area = " << totalArea_ << endl;
|
||||
if (log_) Info<< " total area = " << totalArea_ << endl;
|
||||
}
|
||||
|
||||
// construct weight field. Note: zero size means weight = 1
|
||||
@ -748,7 +748,7 @@ void Foam::fieldValues::faceSource::write()
|
||||
file()<< endl;
|
||||
}
|
||||
|
||||
Info(log_)<< endl;
|
||||
if (log_) Info<< endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -353,7 +353,7 @@ bool Foam::fieldValues::faceSource::writeValues
|
||||
|
||||
file()<< tab << result;
|
||||
|
||||
Info(log_)<< " " << operationTypeNames_[operation_]
|
||||
if (log_) Info<< " " << operationTypeNames_[operation_]
|
||||
<< "(" << sourceName_ << ") of " << fieldName
|
||||
<< " = " << result << endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user