STYLE: polyMesh: remove duplicated code.

This commit is contained in:
mattijs
2020-02-20 10:13:57 +00:00
parent 6ae359f662
commit a47fc3ded8

View File

@ -1192,13 +1192,6 @@ Foam::tmp<Foam::scalarField> Foam::polyMesh::movePoints
faceZones_.movePoints(points_); faceZones_.movePoints(points_);
cellZones_.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 // 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 // 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 // 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. // Small benefit for lots of scope for problems so not done.
cellTreePtr_.clear(); cellTreePtr_.clear();
// Reset valid directions (could change with rotation)
geometricD_ = Zero;
solutionD_ = Zero;
// Note: tet-base decomposition does not get cleared. Ideally your face // Note: tet-base decomposition does not get cleared. Ideally your face
// decomposition should not change during mesh motion ... // decomposition should not change during mesh motion ...