From 0ad54546c2ea1eff091532c1a05e3cd25e4c05bf Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Mon, 19 Aug 2019 16:58:53 +0200 Subject: [PATCH] continue if element deleted in inner loop --- libsrc/meshing/improve2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/meshing/improve2.cpp b/libsrc/meshing/improve2.cpp index 92f6d0c5..be431f87 100644 --- a/libsrc/meshing/improve2.cpp +++ b/libsrc/meshing/improve2.cpp @@ -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];