diff --git a/src/mesh/snappyHexMesh/meshRefinement/meshRefinementProblemCells.C b/src/mesh/snappyHexMesh/meshRefinement/meshRefinementProblemCells.C index a197d0c223b7a73ab5ca9e28a93403d7525d10f8..ffd42013dc3244d9f84e3c2f8afa6bfab5e1bb06 100644 --- a/src/mesh/snappyHexMesh/meshRefinement/meshRefinementProblemCells.C +++ b/src/mesh/snappyHexMesh/meshRefinement/meshRefinementProblemCells.C @@ -730,10 +730,8 @@ Foam::labelList Foam::meshRefinement::markFacesOnProblemCells label nNonAnchorBoundary = 0; label nonBoundaryAnchor = -1; - forAll(cPoints, i) + for (const label pointi : cPoints) { - label pointi = cPoints[i]; - if (pointLevel[pointi] <= cellLevel[celli]) { // Anchor point