From eb3eacd1144e98d498b4cdee5a8a0ce1c5e0d938 Mon Sep 17 00:00:00 2001 From: laurence Date: Wed, 15 Feb 2012 14:32:48 +0000 Subject: [PATCH] ENH: cvMesh: Add noFilter command line option --- .../utilities/mesh/generation/cvMesh/cvMesh.C | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/applications/utilities/mesh/generation/cvMesh/cvMesh.C b/applications/utilities/mesh/generation/cvMesh/cvMesh.C index daf03aa376..ecd7f102ba 100644 --- a/applications/utilities/mesh/generation/cvMesh/cvMesh.C +++ b/applications/utilities/mesh/generation/cvMesh/cvMesh.C @@ -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"