mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
throw exception if 2d meshing fails
This commit is contained in:
parent
e4d6ff8302
commit
7b7e7a52b5
@ -601,7 +601,9 @@ namespace netgen
|
||||
// not complete, use at own risk ...
|
||||
// meshing.Delaunay(*mesh, domnr, mp);
|
||||
mp.checkoverlap = 0;
|
||||
meshing.GenerateMesh (*mesh, mp, h, domnr);
|
||||
auto res = meshing.GenerateMesh (*mesh, mp, h, domnr);
|
||||
if (res != 0)
|
||||
throw NgException("meshing failed");
|
||||
|
||||
for (SurfaceElementIndex sei = oldnf; sei < mesh->GetNSE(); sei++)
|
||||
(*mesh)[sei].SetIndex (domnr);
|
||||
|
Loading…
Reference in New Issue
Block a user