diff --git a/libsrc/meshing/meshfunc.cpp b/libsrc/meshing/meshfunc.cpp index 9da051da..0b17572c 100644 --- a/libsrc/meshing/meshfunc.cpp +++ b/libsrc/meshing/meshfunc.cpp @@ -724,7 +724,6 @@ namespace netgen int it = 10; int nillegal, oldn; - PrintMessage (1, "Remove Illegal Elements"); // return, if non-pure tet-mesh /* if (!mesh3d.PureTetMesh()) @@ -733,6 +732,8 @@ namespace netgen mesh3d.CalcSurfacesOfNode(); nillegal = mesh3d.MarkIllegalElements(); + if(nillegal) + PrintMessage (1, "Remove Illegal Elements"); MeshingParameters dummymp; MeshOptimize3d optmesh(mesh3d, dummymp, OPT_LEGAL);