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:
@ -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];
|
||||
|
||||
|
||||
@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user