skip fixed points when checking for mixed mesh

This commit is contained in:
Matthias Hochsteger 2021-03-16 18:09:07 +01:00
parent 0fc488e802
commit c77da32463

View File

@ -190,7 +190,12 @@ namespace netgen
SurfaceElementIndex sei(i); SurfaceElementIndex sei(i);
seia[i] = sei; seia[i] = sei;
if (mesh[sei].GetNP() != 3) if (mesh[sei].GetNP() != 3)
mixed = true; {
const auto & sel = mesh[sei];
for(auto i : Range(sel.GetNP()))
if(mesh[sel[i]].Type() == INNERPOINT)
mixed = true;
}
}); });
} }
else else