Commit 03f50a8b authored by mattijs's avatar mattijs
Browse files

point merge check

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