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:
Henry Weller
2023-12-15 22:25:02 +00:00
parent c21ff68e79
commit 77f0b172a9
36 changed files with 98 additions and 93 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -466,7 +466,7 @@ void ensightField
eMesh.barrier();
label zoneID = mesh.faceZones().findZoneID(faceZoneName);
label zoneID = mesh.faceZones().findIndex(faceZoneName);
const faceZone& fz = mesh.faceZones()[zoneID];
@ -668,7 +668,7 @@ void ensightPointField
eMesh.barrier();
label zoneID = mesh.faceZones().findZoneID(faceZoneName);
label zoneID = mesh.faceZones().findIndex(faceZoneName);
const faceZone& fz = mesh.faceZones()[zoneID];

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -305,7 +305,7 @@ void Foam::ensightMesh::correct()
forAll(faceZoneNamesAll, zoneI)
{
const word& zoneName = faceZoneNamesAll[zoneI];
const label faceZoneId = mesh_.faceZones().findZoneID(zoneName);
const label faceZoneId = mesh_.faceZones().findIndex(zoneName);
const faceZone& fz = mesh_.faceZones()[faceZoneId];
@ -361,7 +361,7 @@ void Foam::ensightMesh::correct()
{
const word& zoneName = faceZoneNamesAll[zoneI];
nFacePrimitives nfp;
const label faceZoneId = mesh_.faceZones().findZoneID(zoneName);
const label faceZoneId = mesh_.faceZones().findIndex(zoneName);
if (faceZoneNames_.found(zoneName))
{
@ -1249,7 +1249,7 @@ void Foam::ensightMesh::write
{
const word& faceZoneName = iter.key();
label faceID = mesh_.faceZones().findZoneID(faceZoneName);
label faceID = mesh_.faceZones().findIndex(faceZoneName);
const faceZone& fz = mesh_.faceZones()[faceID];