From e9fc5f12a164f9f7681d61c95c891c894ee39a01 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Wed, 1 Sep 2021 21:05:12 +0200 Subject: [PATCH] check overlapping boundaries for sub-domains --- libsrc/meshing/meshfunc.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libsrc/meshing/meshfunc.cpp b/libsrc/meshing/meshfunc.cpp index 3a7b5331..c3a1a405 100644 --- a/libsrc/meshing/meshfunc.cpp +++ b/libsrc/meshing/meshfunc.cpp @@ -472,9 +472,6 @@ namespace netgen mesh3d.Compress(); - if (mp.checkoverlappingboundary) - if (mesh3d.CheckOverlappingBoundary()) - throw NgException ("Stop meshing since boundary mesh is overlapping"); if(mesh3d.GetNDomains()==0) @@ -487,6 +484,10 @@ namespace netgen ParallelFor( md.Range(), [&](int i) { + if (mp.checkoverlappingboundary) + if (md[i].mesh->CheckOverlappingBoundary()) + throw NgException ("Stop meshing since boundary mesh is overlapping"); + CloseOpenQuads( md[i] ); MeshDomain(md[i]); });