X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=test%2FSMESH_mechanic_editor.py;fp=test%2FSMESH_mechanic_editor.py;h=a82694b61480405bbefbfdee5c60f4548124a25e;hp=d1c4abedc55abb133b6db55c2d3dfa7027ff1f40;hb=1ade5b188481247c04b3cecbe8405588f78c6803;hpb=d1392dc0345fb940899baa1121b9230843e47346 diff --git a/test/SMESH_mechanic_editor.py b/test/SMESH_mechanic_editor.py index d1c4abedc..a82694b61 100644 --- a/test/SMESH_mechanic_editor.py +++ b/test/SMESH_mechanic_editor.py @@ -181,7 +181,9 @@ submesh4 = algo.GetSubMesh() print("-------------------------- compute the mesh of the mechanic piece") -mesh.Compute() +isDone = mesh.Compute() +if not isDone: + raise Exception("Error when computing Mesh") print("Information about the Mesh_mechanic:") print("Number of nodes : ", mesh.NbNodes())