Skip to content
Snippets Groups Projects
Commit dfcd42a1 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

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
parents f7c4a70d 9e05c7ea
No related branches found
No related tags found
1 merge request!90added optional argument description (Fixes #347)
...@@ -31,24 +31,25 @@ Description ...@@ -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[]) ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment