mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user