mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
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:
parent
09188b1a73
commit
d33d38f113
@ -756,10 +756,17 @@ namespace netgen
|
|||||||
{
|
{
|
||||||
for (auto & se : mesh.SurfaceElements())
|
for (auto & se : mesh.SurfaceElements())
|
||||||
if (se.GetNP() != 3)
|
if (se.GetNP() != 3)
|
||||||
|
{
|
||||||
|
for(auto pi : se.PNums())
|
||||||
|
if(mesh[pi].Type() == SURFACEPOINT)
|
||||||
{
|
{
|
||||||
mixed = true;
|
mixed = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if(mixed)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
const auto & getDofs = [&] (int i)
|
const auto & getDofs = [&] (int i)
|
||||||
{
|
{
|
||||||
return elementsonpoint[i+PointIndex::BASE];
|
return elementsonpoint[i+PointIndex::BASE];
|
||||||
|
Loading…
Reference in New Issue
Block a user