mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
Use Mesh::CreatePoint2ElementTable() in SplitImprove()
This commit is contained in:
parent
f42ee7b02d
commit
a3ccb6432c
@ -599,7 +599,8 @@ void MeshOptimize3d :: SplitImprove (Mesh & mesh,
|
||||
int np = mesh.GetNP();
|
||||
int ne = mesh.GetNE();
|
||||
|
||||
TABLE<ElementIndex,PointIndex::BASE> elementsonnode(np);
|
||||
auto elementsonnode = mesh.CreatePoint2ElementTable();
|
||||
|
||||
NgArray<ElementIndex> hasbothpoints;
|
||||
|
||||
NgBitArray origpoint(np+1), boundp(np+1); // big enough for 0 and 1-based
|
||||
@ -645,10 +646,6 @@ void MeshOptimize3d :: SplitImprove (Mesh & mesh,
|
||||
(*testout) << "Total badness = " << bad1 << endl;
|
||||
}
|
||||
|
||||
for (ElementIndex ei : mesh.VolumeElements().Range())
|
||||
for (PointIndex pi : mesh[ei].PNums())
|
||||
elementsonnode.Add (pi, ei);
|
||||
|
||||
mesh.MarkIllegalElements();
|
||||
if (goal == OPT_QUALITY || goal == OPT_LEGAL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user