mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
more parallel in MeshTopology
This commit is contained in:
parent
5f2edca91c
commit
3fffb78a20
@ -433,12 +433,26 @@ namespace netgen
|
||||
|
||||
|
||||
vert2surfelement = TABLE<SurfaceElementIndex,PointIndex::BASE> (cnt);
|
||||
/*
|
||||
for (SurfaceElementIndex sei = 0; sei < nse; sei++)
|
||||
{
|
||||
const Element2d & el = (*mesh)[sei];
|
||||
for (int j = 0; j < el.GetNV(); j++)
|
||||
vert2surfelement.AddSave (el[j], sei);
|
||||
}
|
||||
*/
|
||||
ParallelForRange
|
||||
(tm, nse,
|
||||
[&] (size_t begin, size_t end)
|
||||
{
|
||||
for (SurfaceElementIndex sei = begin; sei < end; sei++)
|
||||
{
|
||||
const Element2d & el = (*mesh)[sei];
|
||||
for (int j = 0; j < el.GetNV(); j++)
|
||||
vert2surfelement.ParallelAdd (el[j], sei);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
cnt = 0;
|
||||
for (SegmentIndex si = 0; si < nseg; si++)
|
||||
|
Loading…
Reference in New Issue
Block a user