ENH: improved argList handling of libs, functionObjects

- include -no-libs option by default, similar to '-lib',
  which makes it available to all solvers/utilities.
  Add argList allowLibs() method to query it.

- relocate with/no functionObjects logic from Time to argList
  itself as argList allowFunctionObjects()

- add libs/functionObjects override handling to decomposePar etc

ENH: report the stream relativeName for IOerrors (see c9333a5ac8)
This commit is contained in:
Mark Olesen
2022-09-22 10:17:11 +02:00
parent c031f7d00a
commit 88061f3b28
18 changed files with 73 additions and 37 deletions

View File

@ -494,6 +494,7 @@ void evaluate
int main(int argc, char *argv[])
{
// Normally without functionObjects, with -withFunctionObjects to enable
argList::noFunctionObjects(true);
// No -constant, no special treatment for 0/
@ -741,7 +742,7 @@ int main(int argc, char *argv[])
);
}
if (args.found("withFunctionObjects"))
if (args.allowFunctionObjects())
{
runTime.functionObjects().start();
}