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

STYLE: polyMesh: remove duplicated code.

parent 6ae359f6
No related merge requests found
......@@ -1192,13 +1192,6 @@ Foam::tmp<Foam::scalarField> 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::scalarField> 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 ...
......
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