From a47fc3ded8fc97535dc7f943d6d10f439fc752d0 Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 20 Feb 2020 10:13:57 +0000 Subject: [PATCH] STYLE: polyMesh: remove duplicated code. --- src/OpenFOAM/meshes/polyMesh/polyMesh.C | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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 ...