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.
@ -127,6 +127,7 @@ int main(int argc, char *argv[])
"clean",
"Perform some surface checking/cleanup on the input surface"
);
argList::addVerboseOption();
argList::addOption
(
"read-format",
@ -177,13 +178,14 @@ int main(int argc, char *argv[])
"Triangulate surface"
);
argList args(argc, argv);
Time runTime(args.rootPath(), args.caseName());
const auto importName = args.get<fileName>(1);
const auto exportName = args.get<fileName>(2);
const int optVerbose = args.verbose();
if (importName == exportName)
{
FatalError
@ -298,7 +300,7 @@ int main(int argc, char *argv[])
if (args.found("clean"))
{
surf.cleanup(true);
surf.cleanup(optVerbose);
}
if (fromCsys)