ENH: ignore -noFunctionObjects option when disabled

- With argList::noFunctionObjects() we use the logic added in
  4b93333292 (issue #352)

  By removing the '-noFunctionObjects' option, we automatically
  suppress the creation of function-objects via Time (with argList
  as a parameter).
  There is generally no need in these cases for an additional

      runTime.functionObjects().off()  statement

  Use the argList::noFunctionObjects() for more direct configuration
  and reduce unnecessary clutter in the -help information.

  In previous versions, the -noFunctionObjects would have been redundant
  anyhow, so we can also just ignore it now instead.
This commit is contained in:
Mark Olesen
2018-08-08 09:44:28 +02:00
parent 822acaf6ef
commit e0f83938ee
49 changed files with 410 additions and 337 deletions

View File

@ -2250,6 +2250,8 @@ void redistributeLagrangian
int main(int argc, char *argv[])
{
argList::noFunctionObjects(); // Never use function objects
// enable -constant ... if someone really wants it
// enable -zeroTime to prevent accidentally trashing the initial fields
timeSelector::addOptions(true, true);
@ -2406,7 +2408,7 @@ int main(int argc, char *argv[])
// ~~~~~~~~~~~~~~
#include "createTime.H"
runTime.functionObjects().off();
runTime.functionObjects().off(); // Extra safety?
// Save local processor0 casename