- makes fileHandler calling resemble Time more closely ENH: provide natural_sort less/greater functions - more succinct than (compare < 0) or (compare > 0). The corresponding wrappers for UList renamed as list_less, etc but they were only used in unit tests ENH: handle (-allRegions | -all-regions, ..) directly when retrieving args - makes handling independent of aliasing order STYLE: include <string_view> when including <string> - the standard does not guarantee which headers (if any) actually include string_view
56 lines
1.6 KiB
C
56 lines
1.6 KiB
C
/*---------------------------------------------------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration |
|
|
\\ / A nd | www.openfoam.com
|
|
\\/ M anipulation |
|
|
-------------------------------------------------------------------------------
|
|
Copyright (C) 2025 OpenCFD Ltd.
|
|
-------------------------------------------------------------------------------
|
|
License
|
|
This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
|
|
|
|
Description
|
|
Add multi-region command-line options:
|
|
-allAreas | -all-area-regions
|
|
-area-regions
|
|
-area-region
|
|
|
|
Required Classes
|
|
- Foam::argList
|
|
|
|
See Also
|
|
getAllFaRegionOptions.H
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
{
|
|
Foam::argList::addBoolOption
|
|
(
|
|
"allAreas",
|
|
"Use all regions in finite-area regionProperties"
|
|
);
|
|
Foam::argList::addOptionCompat("allAreas", { "all-area-regions", 0 });
|
|
|
|
Foam::argList::addOption
|
|
(
|
|
"area-regions",
|
|
"wordRes",
|
|
"Use specified area region. Eg, -area-regions film\n"
|
|
"Or from regionProperties. Eg, -area-regions '(film \"solid.*\")'"
|
|
);
|
|
|
|
Foam::argList::addOption
|
|
(
|
|
"area-region",
|
|
"name",
|
|
"Specify area-mesh region. Eg, -area-region shell"
|
|
);
|
|
|
|
// TBD:
|
|
//? Foam::argList::addOptionCompat("area-region", { "areaRegion", 0 });
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|