mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: for-range, forAllIters() ... in mesh/
- reduced clutter when iterating over containers
This commit is contained in:
committed by
Andrew Heather
parent
a766d38643
commit
bd78da22e7
@ -913,13 +913,12 @@ Foam::label Foam::meshRefinement::splitFacesUndo
|
||||
forAll(map.faceMap(), facei)
|
||||
{
|
||||
label oldFacei = map.faceMap()[facei];
|
||||
Map<label>::iterator oldFaceFnd = splitFaceToIndex.find
|
||||
(
|
||||
oldFacei
|
||||
);
|
||||
if (oldFaceFnd != splitFaceToIndex.end())
|
||||
|
||||
const auto oldFaceFnd = splitFaceToIndex.cfind(oldFacei);
|
||||
|
||||
if (oldFaceFnd.found())
|
||||
{
|
||||
labelPair& twoFaces = facePairs[oldFaceFnd()];
|
||||
labelPair& twoFaces = facePairs[oldFaceFnd.val()];
|
||||
if (twoFaces[0] == -1)
|
||||
{
|
||||
twoFaces[0] = facei;
|
||||
|
||||
Reference in New Issue
Block a user