Merge branch 'bugFix_surfaceCheck' into 'develop'

added optional argument description (Fixes #347)

Optional argument listed.

@andy @mark Could you confirm/merge?

See merge request !90
This commit is contained in:
Mark Olesen
2016-12-16 07:13:23 +00:00

View File

@ -31,24 +31,25 @@ Description
Checks geometric and topological quality of a surface. Checks geometric and topological quality of a surface.
Usage Usage
- surfaceCheck surfaceFile [OPTION] \b surfaceCheck [OPTION] surfaceFile
\param -checkSelfIntersection \n Options:
Check for self-intersection. - \par -checkSelfIntersection
Check for self-intersection.
\param -splitNonManifold \n - \par -splitNonManifold
Split surface along non-manifold edges. Split surface along non-manifold edges.
\param -verbose \n - \par -verbose
Extra verbosity. Extra verbosity.
\param -blockMesh \n - \par -blockMesh
Write vertices/blocks for tight-fitting 1 cell blockMeshDict. Write vertices/blocks for tight-fitting 1 cell blockMeshDict.
\param -outputThreshold \<num files\> \n - \par -outputThreshold \<num files\>
Specifies upper limit for the number of files written. This is useful to Upper limit on the number of files written.
prevent surfaces with lots of disconnected parts to write lots of files. Prevent surfaces with many disconnected parts from writing many files.
Default is 10. A special case is 0 which prevents writing any files. The default is 10. A value of 0 suppresses file writing.
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -300,14 +301,21 @@ int main(int argc, char *argv[])
"blockMesh", "blockMesh",
"write vertices/blocks for blockMeshDict" "write vertices/blocks for blockMeshDict"
); );
argList::addOption
(
"outputThreshold",
"number",
"upper limit on the number of files written."
" Default is 10, using 0 suppresses file writing."
);
argList args(argc, argv); argList args(argc, argv);
const fileName surfFileName = args[1]; const fileName surfFileName = args[1];
const bool checkSelfIntersect = args.optionFound("checkSelfIntersection"); const bool checkSelfIntersect = args.optionFound("checkSelfIntersection");
const bool splitNonManifold = args.optionFound("splitNonManifold"); const bool splitNonManifold = args.optionFound("splitNonManifold");
label outputThreshold = 10; const label outputThreshold =
args.optionReadIfPresent("outputThreshold", outputThreshold); args.optionLookupOrDefault("outputThreshold", 10);
Info<< "Reading surface from " << surfFileName << " ..." << nl << endl; Info<< "Reading surface from " << surfFileName << " ..." << nl << endl;