ENH: polyMeshUpdate : set points to something sensible for introduced points

This commit is contained in:
mattijs
2010-08-23 12:31:03 +01:00
parent 69526c6c1c
commit 894215e767

View File

@ -65,6 +65,16 @@ void Foam::polyMesh::updateMesh(const mapPolyMesh& mpm)
// Map the list
newMotionPoints.map(oldMotionPoints, mpm.pointMap());
// Any points created out-of-nothing get set to the current coordinate
// for lack of anything better.
forAll(mpm.pointMap(), newPointI)
{
if (mpm.pointMap()[newPointI] == -1)
{
newMotionPoints[newPointI] = points_[newPointI];
}
}
}
// Reset valid directions (could change by faces put into empty patches)