This commit is contained in:
Joachim Schöberl 2019-09-03 07:11:35 +02:00
parent cd3bf9ead5
commit ad4bbd1aa9

View File

@ -208,18 +208,23 @@ namespace netgen
rule.incelsonnode.SetSize (rule.onp);
rule.reused.SetSize (rule.onp);
for (int j = 1; j <= rule.onp; j++)
for (int j = 0; j < rule.onp; j++)
{
rule.incelsonnode.Elem(j) = 0;
rule.reused.Elem(j) = 0;
rule.incelsonnode[j] = 0;
rule.reused[j] = 0;
}
/*
for (int j = 1; j <= rule.oldels.Size(); j++)
{
const Element2d & el = rule.oldels.Elem(j);
for (int k = 1; k <= el.GetNP(); k++)
rule.incelsonnode.Elem(el.PNum(k))--;
}
*/
for (const Element2d & el : rule.oldels)
for (PointIndex pi : el.PNums())
rule.incelsonnode[pi-PointIndex::BASE]--;
for (int j = 1; j <= rule.newels.Size(); j++)
{