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:
@ -269,8 +269,7 @@ void Foam::processorFaPatch::initUpdateMesh()
|
||||
|
||||
const edge& e = patchEdges[edgeI];
|
||||
|
||||
indexInEdge[patchPointI] =
|
||||
findIndex(e, pointLabels()[patchPointI]);
|
||||
indexInEdge[patchPointI] = e.find(pointLabels()[patchPointI]);
|
||||
}
|
||||
|
||||
OPstream toNeighbProc
|
||||
@ -326,9 +325,9 @@ void Foam::processorFaPatch::updateMesh()
|
||||
// Find edge and index in edge on this side.
|
||||
const edge& e = patchEdges[nbrPatchEdge[nbrPointI]];
|
||||
|
||||
label index = 1 - nbrIndexInEdge[nbrPointI];
|
||||
const label index = 1 - nbrIndexInEdge[nbrPointI];
|
||||
|
||||
label patchPointI = findIndex(pointLabels(), e[index]);
|
||||
const label patchPointI = pointLabels().find(e[index]);
|
||||
|
||||
neighbPoints[patchPointI] = nbrPointI;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user