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

point merge check

parent c7827342
Branches
Tags
No related merge requests found
......@@ -2617,6 +2617,13 @@ void Foam::polyTopoChange::removePoint
<< abort(FatalError);
}
if (pointI == mergePointI)
{
FatalErrorIn("polyTopoChange::removePoint(const label, const label)")
<< "Cannot remove/merge point " << pointI << " onto itself."
<< abort(FatalError);
}
points_[pointI] = greatPoint;
pointMap_[pointI] = -1;
if (mergePointI >= 0)
......
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