ENH: cvMesh: Add noFilter command line option

This commit is contained in:
laurence
2012-02-15 14:32:48 +00:00
parent 0b1644a1c4
commit eb3eacd114

View File

@ -43,10 +43,21 @@ using namespace Foam;
int main(int argc, char *argv[])
{
argList::addBoolOption
(
"noFilter",
"Do not filter the mesh"
);
#include "setRootCase.H"
#include "createTime.H"
runTime.functionObjects().off();
const bool noFilter = !args.optionFound("noFilter");
Info<< "Mesh filtering is " << (noFilter ? "on" : "off") << endl;
IOdictionary cvMeshDict
(
IOobject
@ -74,7 +85,7 @@ int main(int argc, char *argv[])
<< nl << endl;
}
mesh.writeMesh(runTime.constant(), true);
mesh.writeMesh(runTime.constant(), noFilter);
Info<< nl << "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
<< " ClockTime = " << runTime.elapsedClockTime() << " s"