From 06e8764d0162278b8d4aef6a0af0ecf22a244688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sch=C3=B6berl=2C=20Joachim?= Date: Wed, 8 Jan 2025 18:57:01 +0100 Subject: [PATCH] use SortedPointIndex-HT (cherry picked from commit b99b8eec349f0e39edd67341254e3181d4cd86ad) Co-authored-by: Joachim Schoeberl --- libsrc/meshing/bisect.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libsrc/meshing/bisect.cpp b/libsrc/meshing/bisect.cpp index a0dbb20f..5d561eb0 100644 --- a/libsrc/meshing/bisect.cpp +++ b/libsrc/meshing/bisect.cpp @@ -666,7 +666,8 @@ namespace netgen { int ii = sorted.Get(i); for (int j = 1; j <= eclasstab.EntrySize(ii); j++) - edgenumber.Set (edges[eclasstab.Get(ii, j)], ++cnt); + edgenumber.Set (edges[eclasstab.Get(ii, j)], ++cnt); + } return cnt; } @@ -1031,8 +1032,8 @@ namespace netgen i2.Sort(); int hval = edgenumber.Get(i2); */ - // int hval = edgenumber[ SortedPointIndices<2>(mt.pnums[i], mt.pnums[j]) ]; - int hval = edgenumber[ { mt.pnums[i], mt.pnums[j] }]; + int hval = edgenumber[ SortedPointIndices<2>(mt.pnums[i], mt.pnums[j]) ]; + // int hval = edgenumber[ { mt.pnums[i], mt.pnums[j] }]; if (hval > val) { val = hval; @@ -2038,7 +2039,8 @@ namespace netgen // INDEX_2_HASHTABLE edgenumber(np); // INDEX_2_CLOSED_HASHTABLE edgenumber(9*ne+4*nse); - ClosedHashTable edgenumber(9*ne+4*nse); + // ClosedHashTable edgenumber(9*ne+4*nse); + ClosedHashTable, int> edgenumber(9*ne+4*nse); BTSortEdges (mesh, idmaps, edgenumber);