diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index b00a630e..1e111a7d 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -3270,12 +3270,8 @@ namespace netgen for (int i = 0; i < surfelements.Size(); i++) if (surfelements[i].IsDeleted()) { - surfelements[i] = surfelements.Last(); - surfelements.DeleteLast(); - /* - surfelements.Delete(i); + surfelements.DeleteElement(i); i--; - */ } for (int i = 0; i < segments.Size(); i++)