mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +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)
|
||||||
{
|
{
|
||||||
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];
|
||||||
|
Loading…
Reference in New Issue
Block a user