STYLE: runTimeControl FO conditions - refactor to use the Log macro

This commit is contained in:
Andrew Heather
2018-08-21 12:53:29 +01:00
parent 7ffa7bb923
commit a3327b3761
8 changed files with 28 additions and 41 deletions

View File

@ -116,7 +116,7 @@ bool Foam::functionObjects::runTimeControls::averageCondition::apply()
const scalar dt = obr_.time().deltaTValue();
if (log_) Info<< " " << type() << ": " << name_ << " averages:" << nl;
Log << " " << type() << ": " << name_ << " averages:" << nl;
DynamicList<label> unprocessedFields(fieldNames_.size());
@ -149,7 +149,7 @@ bool Foam::functionObjects::runTimeControls::averageCondition::apply()
}
}
if (log_) Info<< endl;
Log << endl;
return satisfied;
}