X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fexamples%2Fdefining_hypotheses_adaptive1d.py;fp=doc%2Fexamples%2Fdefining_hypotheses_adaptive1d.py;h=e0f567a2ae524c9425542050e7e8a93e3a7e2297;hb=1ade5b188481247c04b3cecbe8405588f78c6803;hp=d28342a199ab83d274696e0daaeb0a8f9e3798ed;hpb=d1392dc0345fb940899baa1121b9230843e47346;p=modules%2Fsmesh.git diff --git a/doc/examples/defining_hypotheses_adaptive1d.py b/doc/examples/defining_hypotheses_adaptive1d.py index d28342a19..e0f567a2a 100644 --- a/doc/examples/defining_hypotheses_adaptive1d.py +++ b/doc/examples/defining_hypotheses_adaptive1d.py @@ -31,4 +31,4 @@ deflection = 0.05 mesh = smesh_builder.Mesh( shape ) mesh.Segment().Adaptive( minSize, maxSize, deflection ) mesh.Triangle().MaxElementArea( 300 ) -mesh.Compute() +if not mesh.Compute(): raise Exception("Error when computing Mesh")