ENH: function objects - use Info on construction/read, and Log for all other messages

This commit is contained in:
Andrew Heather
2016-11-03 12:11:20 +00:00
parent 40252e99aa
commit c4c57690c6
20 changed files with 75 additions and 110 deletions

View File

@ -128,7 +128,6 @@ bool Foam::functionObjects::fieldValues::fieldValueDelta::read
)
{
fvMeshFunctionObject::read(dict);
writeFile::read(dict);
region1Ptr_.reset
@ -210,9 +209,9 @@ bool Foam::functionObjects::fieldValues::fieldValueDelta::write()
applyOperation<symmTensor>(type1, name1, name2, entry1, entry2, found);
applyOperation<tensor>(type1, name1, name2, entry1, entry2, found);
if (log && !found)
if (!found)
{
Info<< "Operation between "
Log << "Operation between "
<< name1 << " with result " << entry1 << " and "
<< name2 << " with result " << entry2 << " not applied"
<< endl;

View File

@ -488,7 +488,7 @@ void Foam::functionObjects::fieldValues::surfaceFieldValue::initialise
if (weightFieldName_ == "none")
{
dict.lookup("orientedWeightField") >> weightFieldName_;
Log << " weight field = " << weightFieldName_ << nl;
Info<< " weight field = " << weightFieldName_ << nl;
orientWeightField_ = true;
}
else