diff --git a/src/meshTools/cellDist/cellDistFuncs.C b/src/meshTools/cellDist/cellDistFuncs.C index cd575e683a2a958c1715826bca4f07a3d0d8cfc9..2637c4e99e89379e65b11f73804bc4d8e7722a42 100644 --- a/src/meshTools/cellDist/cellDistFuncs.C +++ b/src/meshTools/cellDist/cellDistFuncs.C @@ -330,7 +330,6 @@ void Foam::cellDistFuncs::correctBoundaryPointCells { // Correct all (non-visited) cells with point on wall - const labelListList& pointCells = mesh().pointCells(); const vectorField& cellCentres = mesh().cellCentres(); forAll(mesh().boundaryMesh(), patchI) @@ -346,7 +345,7 @@ void Foam::cellDistFuncs::correctBoundaryPointCells { label vertI = meshPoints[meshPointI]; - const labelList& neighbours = pointCells[vertI]; + const labelList& neighbours = mesh().pointCells(vertI); forAll(neighbours, neighbourI) {