X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fexamples%2Ftransforming_meshes_ex07.py;h=e54dec1a37060b999ebf9bc05313a3a54d32ae1e;hb=796122663b68ea1cee8c90033398a34d93518d39;hp=db7a6cb7cb79986ce018b7b58a996f9d64fafa62;hpb=7fe1146f763ec80776fca02aac97bec8c3997b87;p=modules%2Fsmesh.git diff --git a/doc/examples/transforming_meshes_ex07.py b/doc/examples/transforming_meshes_ex07.py index db7a6cb7c..e54dec1a3 100644 --- a/doc/examples/transforming_meshes_ex07.py +++ b/doc/examples/transforming_meshes_ex07.py @@ -35,7 +35,7 @@ algo_local = mesh.Segment(edge1) algo_local.Arithmetic1D(1, 4) algo_local.Propagation() -mesh.Compute() +if not mesh.Compute(): raise Exception("Error when computing Mesh") # sew border to side # FirstNodeIDOnFreeBorder, SecondNodeIDOnFreeBorder, LastNodeIDOnFreeBorder,