check overlapping boundaries for sub-domains

This commit is contained in:
Joachim Schoeberl 2021-09-01 21:05:12 +02:00
parent 1b7aa9baf8
commit e9fc5f12a1

View File

@ -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]);
});