mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add -verbose option to surface conversion, cleanup
- by default, reduce the amount of output ENH: support default text description for -verbose option - simplifies use in more places.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
Copyright (C) 2016-2021 OpenCFD Ltd.
|
||||
Copyright (C) 2016-2023 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -80,6 +80,7 @@ int main(int argc, char *argv[])
|
||||
"factor",
|
||||
"Geometry scaling factor on input surfaces"
|
||||
);
|
||||
argList::addVerboseOption();
|
||||
|
||||
argList args(argc, argv);
|
||||
|
||||
@ -87,6 +88,7 @@ int main(int argc, char *argv[])
|
||||
const auto inFileName2 = args.get<fileName>(2);
|
||||
const auto outFileName = args.get<fileName>(3);
|
||||
|
||||
const int optVerbose = args.verbose();
|
||||
const bool addPoint = args.found("points");
|
||||
const bool mergeRegions = args.found("mergeRegions");
|
||||
|
||||
@ -284,7 +286,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
// Merge all common points and do some checks
|
||||
combinedSurf.cleanup(true);
|
||||
combinedSurf.cleanup(optVerbose);
|
||||
|
||||
Info<< "Merged surface:" << endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user