mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-11 21:50:34 +05:00
Merge branch 'cherry-pick-b99b8eec' into 'master'
use SortedPointIndex-HT See merge request ngsolve/netgen!697
This commit is contained in:
commit
c4985c49e1
@ -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<int> edgenumber(np);
|
||||
// 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);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user