mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
STYLE: add notes to some (most) command-line options
- mapFields and splitMeshRegions need more clarification
This commit is contained in:
@ -57,14 +57,23 @@ using namespace Foam;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
argList::addBoolOption("noFlipMap");
|
||||
argList::addNote
|
||||
(
|
||||
"add point/face/cell Zones from similar named point/face/cell Sets"
|
||||
);
|
||||
|
||||
# include "addRegionOption.H"
|
||||
# include "addTimeOptions.H"
|
||||
# include "setRootCase.H"
|
||||
# include "createTime.H"
|
||||
argList::addBoolOption
|
||||
(
|
||||
"noFlipMap",
|
||||
"ignore orientation of faceSet"
|
||||
);
|
||||
|
||||
bool noFlipMap = args.optionFound("noFlipMap");
|
||||
#include "addRegionOption.H"
|
||||
#include "addTimeOptions.H"
|
||||
#include "setRootCase.H"
|
||||
#include "createTime.H"
|
||||
|
||||
const bool noFlipMap = args.optionFound("noFlipMap");
|
||||
|
||||
// Get times list
|
||||
instantList Times = runTime.times();
|
||||
@ -73,11 +82,11 @@ int main(int argc, char *argv[])
|
||||
label endTime = Times.size();
|
||||
|
||||
// check -time and -latestTime options
|
||||
# include "checkTimeOption.H"
|
||||
#include "checkTimeOption.H"
|
||||
|
||||
runTime.setTime(Times[startTime], startTime);
|
||||
|
||||
# include "createNamedPolyMesh.H"
|
||||
#include "createNamedPolyMesh.H"
|
||||
|
||||
// Search for list of objects for the time of the mesh
|
||||
word setsInstance = runTime.findInstance
|
||||
@ -153,9 +162,19 @@ int main(int argc, char *argv[])
|
||||
DynamicList<label> addressing(set.size());
|
||||
DynamicList<bool> flipMap(set.size());
|
||||
|
||||
if (!noFlipMap)
|
||||
if (noFlipMap)
|
||||
{
|
||||
word setName(set.name() + "SlaveCells");
|
||||
// No flip map.
|
||||
forAll(faceLabels, i)
|
||||
{
|
||||
label faceI = faceLabels[i];
|
||||
addressing.append(faceI);
|
||||
flipMap.append(false);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
const word setName(set.name() + "SlaveCells");
|
||||
|
||||
Info<< "Trying to load cellSet " << setName
|
||||
<< " to find out the slave side of the zone." << nl
|
||||
@ -226,16 +245,6 @@ int main(int argc, char *argv[])
|
||||
flipMap.append(flip);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// No flip map.
|
||||
forAll(faceLabels, i)
|
||||
{
|
||||
label faceI = faceLabels[i];
|
||||
addressing.append(faceI);
|
||||
flipMap.append(false);
|
||||
}
|
||||
}
|
||||
|
||||
label zoneID = mesh.faceZones().findZoneID(set.name());
|
||||
if (zoneID == -1)
|
||||
|
||||
Reference in New Issue
Block a user