mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-11 21:50:34 +05:00
throw exception if 2d meshing fails
This commit is contained in:
parent
e4d6ff8302
commit
7b7e7a52b5
@ -601,8 +601,10 @@ namespace netgen
|
|||||||
// not complete, use at own risk ...
|
// not complete, use at own risk ...
|
||||||
// meshing.Delaunay(*mesh, domnr, mp);
|
// meshing.Delaunay(*mesh, domnr, mp);
|
||||||
mp.checkoverlap = 0;
|
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++)
|
for (SurfaceElementIndex sei = oldnf; sei < mesh->GetNSE(); sei++)
|
||||||
(*mesh)[sei].SetIndex (domnr);
|
(*mesh)[sei].SetIndex (domnr);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user