potentialFoam: added "noFunctionObjects" option
This commit is contained in:
parent
b09038cd1a
commit
e26e8f1032
@ -39,6 +39,12 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
argList::addBoolOption("writep", "write the final pressure field");
|
argList::addBoolOption("writep", "write the final pressure field");
|
||||||
|
|
||||||
|
argList::addBoolOption
|
||||||
|
(
|
||||||
|
"noFunctionObjects",
|
||||||
|
"do not execute functionObjects"
|
||||||
|
);
|
||||||
|
|
||||||
#include "setRootCase.H"
|
#include "setRootCase.H"
|
||||||
#include "createTime.H"
|
#include "createTime.H"
|
||||||
#include "createMesh.H"
|
#include "createMesh.H"
|
||||||
@ -51,7 +57,10 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// Since solver contains no time loop it would never execute
|
// Since solver contains no time loop it would never execute
|
||||||
// function objects so do it ourselves.
|
// function objects so do it ourselves.
|
||||||
runTime.functionObjects().start();
|
if (!args.optionFound("noFunctionObjects"))
|
||||||
|
{
|
||||||
|
runTime.functionObjects().start();
|
||||||
|
}
|
||||||
|
|
||||||
adjustPhi(phi, U, p);
|
adjustPhi(phi, U, p);
|
||||||
|
|
||||||
@ -103,8 +112,10 @@ int main(int argc, char *argv[])
|
|||||||
p.write();
|
p.write();
|
||||||
}
|
}
|
||||||
|
|
||||||
runTime.functionObjects().end();
|
if (!args.optionFound("noFunctionObjects"))
|
||||||
|
{
|
||||||
|
runTime.functionObjects().end();
|
||||||
|
}
|
||||||
|
|
||||||
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
|
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
|
||||||
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
|
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
|
||||||
|
Loading…
Reference in New Issue
Block a user