continue if element deleted in inner loop

This commit is contained in:
Christopher Lackner 2019-08-19 16:58:53 +02:00
parent 67f4c89ea1
commit 0ad54546c2

View File

@ -544,10 +544,10 @@ namespace netgen
{
SurfaceElementIndex sei = seia[i];
Element2d & elem = mesh[sei];
if (elem.IsDeleted()) continue;
for (int j = 0; j < 3; j++)
{
if (elem.IsDeleted()) continue;
PointIndex pi1 = elem[j];
PointIndex pi2 = elem[(j+1) % 3];