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())
if (se.GetNP() != 3)
{
for(auto pi : se.PNums())
if(mesh[pi].Type() == SURFACEPOINT)
{
mixed = true;
break;
}
if(mixed)
break;
}
const auto & getDofs = [&] (int i)
{
return elementsonpoint[i+PointIndex::BASE];