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:
Mark Olesen
2023-05-08 18:15:00 +02:00
parent bddda09a08
commit 16591012e9
22 changed files with 54 additions and 43 deletions

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2018-2022 OpenCFD Ltd.
Copyright (C) 2018-2023 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -105,6 +105,7 @@ int main(int argc, char *argv[])
"clean",
"Perform some surface checking/cleanup on the input surface"
);
argList::addVerboseOption();
argList::addOption
(
"name",
@ -157,6 +158,8 @@ int main(int argc, char *argv[])
const auto exportName = args.get<fileName>(1);
const auto importName = args.getOrDefault<word>("name", "default");
const int optVerbose = args.verbose();
const word writeFileType
(
args.getOrDefault<word>("write-format", getExtension(exportName))
@ -273,7 +276,7 @@ int main(int argc, char *argv[])
if (args.found("clean"))
{
surf.cleanup(true);
surf.cleanup(optVerbose);
}
if (fromCsys)