mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: argList: added -noFunctionObjects to all argList
This commit is contained in:
@ -39,12 +39,6 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
argList::addBoolOption("writep", "write the final pressure field");
|
||||
|
||||
argList::addBoolOption
|
||||
(
|
||||
"noFunctionObjects",
|
||||
"do not execute functionObjects"
|
||||
);
|
||||
|
||||
#include "setRootCase.H"
|
||||
#include "createTime.H"
|
||||
#include "createMesh.H"
|
||||
@ -57,10 +51,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
// Since solver contains no time loop it would never execute
|
||||
// function objects so do it ourselves.
|
||||
if (!args.optionFound("noFunctionObjects"))
|
||||
{
|
||||
runTime.functionObjects().start();
|
||||
}
|
||||
runTime.functionObjects().start();
|
||||
|
||||
adjustPhi(phi, U, p);
|
||||
|
||||
@ -112,10 +103,7 @@ int main(int argc, char *argv[])
|
||||
p.write();
|
||||
}
|
||||
|
||||
if (!args.optionFound("noFunctionObjects"))
|
||||
{
|
||||
runTime.functionObjects().end();
|
||||
}
|
||||
runTime.functionObjects().end();
|
||||
|
||||
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
|
||||
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
|
||||
|
||||
Reference in New Issue
Block a user