Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / test / basic_geom_smesh_without_session.py
index 9626ff9ebeaf1e65970140dfb59864cd2cf93985..c9084f8aacd2079c109df4627c8707c0aebb2c4d 100644 (file)
@@ -44,7 +44,8 @@ smesh.SetEnablePublish( True ) # Set to False to avoid publish in study if not n
 Mesh_1 = smesh.Mesh(Box_1)
 NETGEN_1D_2D_3D = Mesh_1.Tetrahedron(algo=smeshBuilder.NETGEN_1D2D3D)
 isDone = Mesh_1.Compute()
-
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 ## Set names of Mesh objects
 smesh.SetName(NETGEN_1D_2D_3D.GetAlgorithm(), 'NETGEN 1D-2D-3D')