From 63133b5058ba4cfbad2b091b31da6cc7efa8b3c2 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Fri, 15 Apr 2022 10:30:38 +0200 Subject: [PATCH] return before building boundary edges --- libsrc/meshing/improve3.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libsrc/meshing/improve3.cpp b/libsrc/meshing/improve3.cpp index 80e60545..1f17041e 100644 --- a/libsrc/meshing/improve3.cpp +++ b/libsrc/meshing/improve3.cpp @@ -3976,6 +3976,7 @@ void MeshOptimize3d :: SwapImprove2 (Mesh & mesh, OPTIMIZEGOAL goal) static Timer t("MeshOptimize3d::SwapImprove2"); RegionTimer reg(t); // return SwapImprove2Sequential(mesh, goal); + if (goal == OPT_CONFORM) return; mesh.BuildBoundaryEdges(false); @@ -3986,8 +3987,6 @@ void MeshOptimize3d :: SwapImprove2 (Mesh & mesh, OPTIMIZEGOAL goal) int ne = mesh.GetNE(); int nse = mesh.GetNSE(); - if (goal == OPT_CONFORM) return; - // contains at least all elements at node TABLE belementsonnode(np);