mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 04:40:34 +05:00
use SortedPointIndex-HT
(cherry picked from commit b99b8eec349f0e39edd67341254e3181d4cd86ad) Co-authored-by: Joachim Schoeberl <joachim.schoeberl@tuwien.ac.at>
This commit is contained in:
parent
dcd6f6d60d
commit
06e8764d01
@ -666,7 +666,8 @@ namespace netgen
|
|||||||
{
|
{
|
||||||
int ii = sorted.Get(i);
|
int ii = sorted.Get(i);
|
||||||
for (int j = 1; j <= eclasstab.EntrySize(ii); j++)
|
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;
|
return cnt;
|
||||||
}
|
}
|
||||||
@ -1031,8 +1032,8 @@ namespace netgen
|
|||||||
i2.Sort();
|
i2.Sort();
|
||||||
int hval = edgenumber.Get(i2);
|
int hval = edgenumber.Get(i2);
|
||||||
*/
|
*/
|
||||||
// int hval = edgenumber[ SortedPointIndices<2>(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] }];
|
// int hval = edgenumber[ { mt.pnums[i], mt.pnums[j] }];
|
||||||
if (hval > val)
|
if (hval > val)
|
||||||
{
|
{
|
||||||
val = hval;
|
val = hval;
|
||||||
@ -2038,7 +2039,8 @@ namespace netgen
|
|||||||
|
|
||||||
// INDEX_2_HASHTABLE<int> edgenumber(np);
|
// INDEX_2_HASHTABLE<int> edgenumber(np);
|
||||||
// INDEX_2_CLOSED_HASHTABLE<int> edgenumber(9*ne+4*nse);
|
// INDEX_2_CLOSED_HASHTABLE<int> edgenumber(9*ne+4*nse);
|
||||||
ClosedHashTable<INDEX_2, int> edgenumber(9*ne+4*nse);
|
// ClosedHashTable<INDEX_2, int> edgenumber(9*ne+4*nse);
|
||||||
|
ClosedHashTable<SortedPointIndices<2>, int> edgenumber(9*ne+4*nse);
|
||||||
BTSortEdges (mesh, idmaps, edgenumber);
|
BTSortEdges (mesh, idmaps, edgenumber);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user