MeshZones: Renamed findZoneID -> findIndex
Index is a better name to describe a label index than ID which may be an integer, word or other means of identification.
This commit is contained in:
@ -413,7 +413,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
const word& name = selectors[selectorI].name();
|
||||
|
||||
if (mesh.faceZones().findZoneID(name) == -1)
|
||||
if (mesh.faceZones().findIndex(name) == -1)
|
||||
{
|
||||
mesh.faceZones().clearAddressing();
|
||||
|
||||
@ -437,7 +437,7 @@ int main(int argc, char *argv[])
|
||||
forAll(selectors, selectorI)
|
||||
{
|
||||
const word& name = selectors[selectorI].name();
|
||||
label zoneID = mesh.faceZones().findZoneID(name);
|
||||
label zoneID = mesh.faceZones().findIndex(name);
|
||||
|
||||
selectors[selectorI].select(zoneID, faceToZoneID, faceToFlip);
|
||||
}
|
||||
@ -455,7 +455,7 @@ int main(int argc, char *argv[])
|
||||
forAll(selectors, selectorI)
|
||||
{
|
||||
const word& name = selectors[selectorI].name();
|
||||
const label zoneID = mesh.faceZones().findZoneID(name);
|
||||
const label zoneID = mesh.faceZones().findIndex(name);
|
||||
|
||||
label& n = nFaces[zoneID];
|
||||
labelList addr(n);
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2023 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -67,7 +67,7 @@ void Foam::faceSelections::faceZoneSelection::select
|
||||
boolList& faceToFlip
|
||||
) const
|
||||
{
|
||||
label readID = mesh_.faceZones().findZoneID(zoneName_);
|
||||
label readID = mesh_.faceZones().findIndex(zoneName_);
|
||||
|
||||
if (readID == -1)
|
||||
{
|
||||
|
||||
@ -112,7 +112,7 @@ int main(int argc, char *argv[])
|
||||
pointSet set(*iter());
|
||||
SortableList<label> pointLabels(set.toc());
|
||||
|
||||
label zoneID = mesh.pointZones().findZoneID(set.name());
|
||||
label zoneID = mesh.pointZones().findIndex(set.name());
|
||||
if (zoneID == -1)
|
||||
{
|
||||
Info<< "Adding set " << set.name() << " as a pointZone." << endl;
|
||||
@ -243,7 +243,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
label zoneID = mesh.faceZones().findZoneID(set.name());
|
||||
label zoneID = mesh.faceZones().findIndex(set.name());
|
||||
if (zoneID == -1)
|
||||
{
|
||||
Info<< "Adding set " << set.name() << " as a faceZone." << endl;
|
||||
@ -292,7 +292,7 @@ int main(int argc, char *argv[])
|
||||
cellSet set(*iter());
|
||||
SortableList<label> cellLabels(set.toc());
|
||||
|
||||
label zoneID = mesh.cellZones().findZoneID(set.name());
|
||||
label zoneID = mesh.cellZones().findIndex(set.name());
|
||||
if (zoneID == -1)
|
||||
{
|
||||
Info<< "Adding set " << set.name() << " as a cellZone." << endl;
|
||||
|
||||
@ -1825,7 +1825,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
word zoneName = "region" + Foam::name(regioni);
|
||||
|
||||
zoneI = cellZones.findZoneID(zoneName);
|
||||
zoneI = cellZones.findIndex(zoneName);
|
||||
|
||||
if (zoneI == -1)
|
||||
{
|
||||
|
||||
@ -76,7 +76,7 @@ using namespace Foam;
|
||||
|
||||
label addPointZone(const polyMesh& mesh, const word& name)
|
||||
{
|
||||
label zoneID = mesh.pointZones().findZoneID(name);
|
||||
label zoneID = mesh.pointZones().findIndex(name);
|
||||
|
||||
if (zoneID != -1)
|
||||
{
|
||||
@ -109,7 +109,7 @@ label addPointZone(const polyMesh& mesh, const word& name)
|
||||
|
||||
label addFaceZone(const polyMesh& mesh, const word& name)
|
||||
{
|
||||
label zoneID = mesh.faceZones().findZoneID(name);
|
||||
label zoneID = mesh.faceZones().findIndex(name);
|
||||
|
||||
if (zoneID != -1)
|
||||
{
|
||||
@ -142,7 +142,7 @@ label addFaceZone(const polyMesh& mesh, const word& name)
|
||||
|
||||
label addCellZone(const polyMesh& mesh, const word& name)
|
||||
{
|
||||
label zoneID = mesh.cellZones().findZoneID(name);
|
||||
label zoneID = mesh.cellZones().findIndex(name);
|
||||
|
||||
if (zoneID != -1)
|
||||
{
|
||||
|
||||
@ -65,7 +65,7 @@ void removeZone
|
||||
const word& setName
|
||||
)
|
||||
{
|
||||
label zoneID = zones.findZoneID(setName);
|
||||
label zoneID = zones.findIndex(setName);
|
||||
|
||||
if (zoneID != -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user