STYLE: use list methods find/found instead of findIndex function

This commit is contained in:
Mark Olesen
2017-10-24 19:07:34 +02:00
parent 5b8b689a37
commit 7d7b0bfe84
136 changed files with 369 additions and 441 deletions

View File

@ -45,7 +45,7 @@ void Foam::patchToPoly2DMesh::flipFaceOrder()
const face& f = localFaces[edgeOwner];
label fp = findIndex(f, e[0]);
label fp = f.find(e[0]);
if (f.nextLabel(fp) != e[1])
{
@ -207,7 +207,7 @@ void Foam::patchToPoly2DMesh::addPatchFacesToOwner()
{
const face& f = faces[owner_[bEdgeI]];
label fp = findIndex(f, e[0]);
label fp = f.find(e[0]);
newOwner[bFacei] = owner_[bEdgeI];