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

@ -145,13 +145,10 @@ bool Foam::functionObjects::runTimeControls::minMaxCondition::apply()
}
}
if (log_)
{
Info<< " " << type() << ": " << modeTypeNames_[mode_] << " "
<< fieldName << ": value = " << v
<< ", threshold value = " << value_
<< ", satisfied = " << ok << endl;
}
Log << " " << type() << ": " << modeTypeNames_[mode_] << " "
<< fieldName << ": value = " << v
<< ", threshold value = " << value_
<< ", satisfied = " << ok << endl;
satisfied = satisfied && ok;
}