polyBoundaryMesh::findPatchID,findPatchIDs: renamed findIndex,findIndices
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:
@ -230,7 +230,7 @@ int main(int argc, char *argv[])
|
||||
labelList faceZoneToCompactZone(bMesh.size(), -1);
|
||||
forAllConstIter(HashTable<label>, compactZoneID, iter)
|
||||
{
|
||||
label patchi = bMesh.findPatchID(iter.key());
|
||||
label patchi = bMesh.findIndex(iter.key());
|
||||
if (patchi != -1)
|
||||
{
|
||||
patchToCompactZone[patchi] = iter();
|
||||
|
||||
@ -46,7 +46,7 @@ using namespace Foam;
|
||||
// Adds empty patch if not yet there. Returns patchID.
|
||||
label addPatch(polyMesh& mesh, const word& patchName)
|
||||
{
|
||||
label patchi = mesh.boundaryMesh().findPatchID(patchName);
|
||||
label patchi = mesh.boundaryMesh().findIndex(patchName);
|
||||
|
||||
if (patchi == -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user