Commit e26e8f10 authored by Henry's avatar Henry
Browse files

potentialFoam: added "noFunctionObjects" option

parent b09038cd
......@@ -39,6 +39,12 @@ 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"
......@@ -51,7 +57,10 @@ int main(int argc, char *argv[])
// Since solver contains no time loop it would never execute
// function objects so do it ourselves.
runTime.functionObjects().start();
if (!args.optionFound("noFunctionObjects"))
{
runTime.functionObjects().start();
}
adjustPhi(phi, U, p);
......@@ -103,8 +112,10 @@ int main(int argc, char *argv[])
p.write();
}
runTime.functionObjects().end();
if (!args.optionFound("noFunctionObjects"))
{
runTime.functionObjects().end();
}
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment