potentialFoam: No longer executes functionObjects by default

Use the new -withFunctionObjects command-line option to execute functionObjects
This commit is contained in:
Henry
2015-04-25 21:56:14 +01:00
parent e75f3db3ca
commit c28036665d
10 changed files with 231 additions and 5 deletions

View File

@ -486,7 +486,13 @@ Foam::Time::Time
graphFormat_("raw"),
runTimeModifiable_(false),
functionObjects_(*this, !args.optionFound("noFunctionObjects"))
functionObjects_
(
*this,
argList::validOptions.found("withFunctionObjects")
? args.optionFound("withFunctionObjects")
: !args.optionFound("noFunctionObjects")
)
{
libs_.open(controlDict_, "libs");