diff --git a/src/OpenFOAM/meshes/polyMesh/polyMesh.C b/src/OpenFOAM/meshes/polyMesh/polyMesh.C index 6032025cf7..1be83502c8 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMesh.C @@ -1192,13 +1192,6 @@ Foam::tmp Foam::polyMesh::movePoints faceZones_.movePoints(points_); cellZones_.movePoints(points_); - // Cell tree might become invalid - cellTreePtr_.clear(); - - // Reset valid directions (could change with rotation) - geometricD_ = Zero; - solutionD_ = Zero; - // Reset cell tree - it gets built from mesh geometry so might have // wrong boxes. It is correct as long as none of the cells leaves // the boxes it is in which most likely is almost never the case except @@ -1210,6 +1203,10 @@ Foam::tmp Foam::polyMesh::movePoints // Small benefit for lots of scope for problems so not done. cellTreePtr_.clear(); + // Reset valid directions (could change with rotation) + geometricD_ = Zero; + solutionD_ = Zero; + // Note: tet-base decomposition does not get cleared. Ideally your face // decomposition should not change during mesh motion ...