return before building boundary edges

This commit is contained in:
Matthias Hochsteger 2022-04-15 10:30:38 +02:00
parent 7e8a547a91
commit 63133b5058

View File

@ -3976,6 +3976,7 @@ void MeshOptimize3d :: SwapImprove2 (Mesh & mesh, OPTIMIZEGOAL goal)
static Timer t("MeshOptimize3d::SwapImprove2"); RegionTimer reg(t); static Timer t("MeshOptimize3d::SwapImprove2"); RegionTimer reg(t);
// return SwapImprove2Sequential(mesh, goal); // return SwapImprove2Sequential(mesh, goal);
if (goal == OPT_CONFORM) return;
mesh.BuildBoundaryEdges(false); mesh.BuildBoundaryEdges(false);
@ -3986,8 +3987,6 @@ void MeshOptimize3d :: SwapImprove2 (Mesh & mesh, OPTIMIZEGOAL goal)
int ne = mesh.GetNE(); int ne = mesh.GetNE();
int nse = mesh.GetNSE(); int nse = mesh.GetNSE();
if (goal == OPT_CONFORM) return;
// contains at least all elements at node // contains at least all elements at node
TABLE<SurfaceElementIndex, PointIndex::BASE> belementsonnode(np); TABLE<SurfaceElementIndex, PointIndex::BASE> belementsonnode(np);