Fixed index issue for 0D elements in topology

This commit is contained in:
Gerhard Kitzler 2016-08-17 17:17:23 +02:00
parent f5a9991d24
commit 05add9530d

View File

@ -163,8 +163,8 @@ namespace netgen
vert2pointelement = new TABLE<int,PointIndex::BASE> (cnt);
for (int pi = 0; pi < mesh.pointelements.Size(); pi++)
{
const Element0d & pointel = mesh.pointelements[pi];
vert2pointelement->AddSave (pointel.pnum, pi);
const Element0d & pointel = mesh.pointelements[pi];
vert2pointelement->AddSave (pointel.pnum, pi+1);
}