mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: polyMeshUpdate : set points to something sensible for introduced points
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user