Merge branch 'fix_tutorial' into test_tutorials

This commit is contained in:
Christopher Lackner 2019-08-08 11:07:13 +02:00
commit 07a45072c6

View File

@ -3270,12 +3270,8 @@ namespace netgen
for (int i = 0; i < surfelements.Size(); i++) for (int i = 0; i < surfelements.Size(); i++)
if (surfelements[i].IsDeleted()) if (surfelements[i].IsDeleted())
{ {
surfelements[i] = surfelements.Last(); surfelements.DeleteElement(i);
surfelements.DeleteLast();
/*
surfelements.Delete(i);
i--; i--;
*/
} }
for (int i = 0; i < segments.Size(); i++) for (int i = 0; i < segments.Size(); i++)