mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
parallel update
This commit is contained in:
parent
346e3db54d
commit
9ef2028729
@ -17,7 +17,13 @@ namespace netgen
|
||||
mesh.ComputeNVertices();
|
||||
mesh.SetNP(mesh.GetNV());
|
||||
|
||||
if (mesh.mlbetweennodes.Size() < mesh.GetNV())
|
||||
{
|
||||
mesh.mlbetweennodes.SetSize(mesh.GetNV());
|
||||
mesh.mlbetweennodes = INDEX_2(PointIndex::BASE-1,PointIndex::BASE-1);
|
||||
}
|
||||
|
||||
|
||||
INDEX_2_HASHTABLE<PointIndex> between(mesh.GetNP() + 5);
|
||||
|
||||
|
||||
@ -70,7 +76,10 @@ namespace netgen
|
||||
QuickSort (parents, par_nr);
|
||||
|
||||
for (int i = 0; i < parents.Size(); i++)
|
||||
between.Set (parents[i], mesh.GetNV()+i+PointIndex::BASE);
|
||||
{
|
||||
between.Set (parents[i], mesh.GetNV()+i+PointIndex::BASE);
|
||||
mesh.mlbetweennodes[mesh.GetNV()+i+PointIndex::BASE] = parents[i];
|
||||
}
|
||||
|
||||
mesh.SetNP(mesh.GetNV() + parents.Size());
|
||||
Array<bool, PointIndex::BASE> pointset(mesh.GetNP());
|
||||
|
Loading…
Reference in New Issue
Block a user