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

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

parent 69526c6c
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment