mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: cvMesh: Add noFilter command line option
This commit is contained in:
@ -43,10 +43,21 @@ using namespace Foam;
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
argList::addBoolOption
|
||||||
|
(
|
||||||
|
"noFilter",
|
||||||
|
"Do not filter the mesh"
|
||||||
|
);
|
||||||
|
|
||||||
#include "setRootCase.H"
|
#include "setRootCase.H"
|
||||||
#include "createTime.H"
|
#include "createTime.H"
|
||||||
|
|
||||||
runTime.functionObjects().off();
|
runTime.functionObjects().off();
|
||||||
|
|
||||||
|
const bool noFilter = !args.optionFound("noFilter");
|
||||||
|
|
||||||
|
Info<< "Mesh filtering is " << (noFilter ? "on" : "off") << endl;
|
||||||
|
|
||||||
IOdictionary cvMeshDict
|
IOdictionary cvMeshDict
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
@ -74,7 +85,7 @@ int main(int argc, char *argv[])
|
|||||||
<< nl << endl;
|
<< nl << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
mesh.writeMesh(runTime.constant(), true);
|
mesh.writeMesh(runTime.constant(), noFilter);
|
||||||
|
|
||||||
Info<< nl << "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
|
Info<< nl << "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
|
||||||
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
|
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
|
||||||
|
|||||||
Reference in New Issue
Block a user