Skip to content
Snippets Groups Projects
Commit f1e0067c authored by mattijs's avatar mattijs
Browse files

ENH: cellDistFuncs: use on-the-fly pointCells calculation

parent a05f38db
Branches
Tags
No related merge requests found
...@@ -330,7 +330,6 @@ void Foam::cellDistFuncs::correctBoundaryPointCells ...@@ -330,7 +330,6 @@ void Foam::cellDistFuncs::correctBoundaryPointCells
{ {
// Correct all (non-visited) cells with point on wall // Correct all (non-visited) cells with point on wall
const labelListList& pointCells = mesh().pointCells();
const vectorField& cellCentres = mesh().cellCentres(); const vectorField& cellCentres = mesh().cellCentres();
forAll(mesh().boundaryMesh(), patchI) forAll(mesh().boundaryMesh(), patchI)
...@@ -346,7 +345,7 @@ void Foam::cellDistFuncs::correctBoundaryPointCells ...@@ -346,7 +345,7 @@ void Foam::cellDistFuncs::correctBoundaryPointCells
{ {
label vertI = meshPoints[meshPointI]; label vertI = meshPoints[meshPointI];
const labelList& neighbours = pointCells[vertI]; const labelList& neighbours = mesh().pointCells(vertI);
forAll(neighbours, neighbourI) forAll(neighbours, neighbourI)
{ {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment