faster 2d smoothing for certain mixed meshes

don't consider quads with fixed points as "mixed mesh" (will be skipped during
optimization anyway)
This commit is contained in:
Matthias Hochsteger 2022-09-07 13:50:05 +02:00
parent 09188b1a73
commit d33d38f113

View File

@ -756,10 +756,17 @@ namespace netgen
{ {
for (auto & se : mesh.SurfaceElements()) for (auto & se : mesh.SurfaceElements())
if (se.GetNP() != 3) if (se.GetNP() != 3)
{ {
mixed = true; for(auto pi : se.PNums())
break; if(mesh[pi].Type() == SURFACEPOINT)
} {
mixed = true;
break;
}
if(mixed)
break;
}
const auto & getDofs = [&] (int i) const auto & getDofs = [&] (int i)
{ {
return elementsonpoint[i+PointIndex::BASE]; return elementsonpoint[i+PointIndex::BASE];