Salome HOME
Check result of Compute() in test and examples
[modules/smesh.git] / test / SMESH_GroupLyingOnGeom.py
index 8af4bfa6a44b45a9c148e5f18412598ecc941e6a..06ff151317daeaa2db852daa1550ffb0f73ce8e6 100644 (file)
@@ -39,7 +39,9 @@ def BuildGroupLyingOn(theMesh, theElemType, theName, theShape):
 #Example
 from SMESH_test1 import *
 
-mesh.Compute()
+isDone = mesh.Compute()
+if not isDone:
+    raise Exception("Error when computing Mesh")
 
 # First way
 BuildGroupLyingOn(mesh.GetMesh(), SMESH.FACE, "Group of faces lying on edge #1", edge )