STYLE: additional comments in Test-decomposePar

This commit is contained in:
Mark Olesen
2018-12-05 08:42:55 +01:00
parent 274bb501bc
commit bff16a0ddc

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2017 OpenCFD Ltd. \\ / A nd | Copyright (C) 2017-2018 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -22,32 +22,13 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Application Application
decomposePar Test-decomposePar
Group Group
grpParallelUtilities grpParallelUtilities
Description Description
Automatically decomposes a mesh and fields of a case for parallel Like decomposePar -dry-run, but with additional options
execution of OpenFOAM.
Usage
\b decomposePar [OPTION]
Options:
- \par -region \<regionName\>
Decompose named region. Does not check for existence of processor*.
- \par -allRegions
Decompose all regions in regionProperties. Does not check for
existence of processor*.
- \par -constant
- \par -time xxx:yyy
Override controlDict settings and decompose selected times. Does not
re-decompose the mesh i.e. does not handle moving mesh or changing
mesh cases.
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -65,7 +46,10 @@ int main(int argc, char *argv[])
{ {
argList::addNote argList::addNote
( (
"decompose a mesh and fields of a case for parallel execution" "Special-purpose version of decomposePar with additional"
" -domain and -method options."
" The '-dry-run' and '-cellDist' are implicit.\n"
"NB: The -domain/-method overrides may not work very well with regions"
); );
argList::noParallel(); argList::noParallel();
@ -79,33 +63,38 @@ int main(int argc, char *argv[])
argList::addBoolOption argList::addBoolOption
( (
"allRegions", "allRegions",
"operate on all regions in regionProperties" "Operate on all regions in regionProperties"
); );
argList::addBoolOption argList::addBoolOption
( (
"verbose", "verbose",
"more information about decomposition" "Additional verbosity"
); );
argList::addOption argList::addOption
( (
"domains", "domains",
"N", "N",
"override numberOfSubdomains" "Override numberOfSubdomains"
); );
argList::addOption argList::addOption
( (
"method", "method",
"name", "name",
"override method" "Override decomposition method"
); );
// These are implicit so just ignore them
argList::ignoreOptionCompat({"dry-run", 0}, false);
argList::ignoreOptionCompat({"cellDist", 0}, false);
// Include explicit constant options, have zero from time range // Include explicit constant options, have zero from time range
timeSelector::addOptions(true, false); timeSelector::addOptions(true, false);
#include "setRootCase.H" #include "setRootCase.H"
const bool region = args.found("region"); const bool optRegion = args.found("region");
const bool allRegions = args.found("allRegions"); const bool allRegions = args.found("allRegions");
const bool verbose = args.found("verbose"); const bool verbose = args.found("verbose");