mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: avoid global findIndex() in favour of UList::find()
This commit is contained in:
@ -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] =
|
||||
|
||||
Reference in New Issue
Block a user