mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
throw if optimize2d is called without geometry
This commit is contained in:
parent
5e489319c6
commit
d1d3253408
@ -983,6 +983,8 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
|||||||
self.CalcLocalH(0.5);
|
self.CalcLocalH(0.5);
|
||||||
MeshingParameters mp;
|
MeshingParameters mp;
|
||||||
mp.optsteps2d = 5;
|
mp.optsteps2d = 5;
|
||||||
|
if(!self.GetGeometry())
|
||||||
|
throw Exception("Cannot optimize surface mesh without geometry!");
|
||||||
Optimize2d (self, mp);
|
Optimize2d (self, mp);
|
||||||
},py::call_guard<py::gil_scoped_release>())
|
},py::call_guard<py::gil_scoped_release>())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user