STYLE: avoid global findIndex() in favour of UList::find()

This commit is contained in:
Mark Olesen
2018-02-21 11:50:34 +01:00
parent c126464d1c
commit 3ee2f3293e
8 changed files with 25 additions and 46 deletions

View File

@ -1253,12 +1253,11 @@ bool Foam::faMeshDecomposition::writeDecomposition()
{
const labelList& curEdgeLabels = curPatchEdgeLabels[nPatches];
label ngbPolyPatchIndex =
findIndex
const label ngbPolyPatchIndex =
fvBoundaryProcAddressing.find
(
fvBoundaryProcAddressing,
meshPatches[curBoundaryAddressing[patchi]]
.ngbPolyPatchIndex()
.ngbPolyPatchIndex()
);
procPatches[nPatches] =