From 0cdfb24792f695e713a6289ceff3c5b1855a0ec4 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 27 May 2020 15:35:21 +0300 Subject: [PATCH] Check that meshing passes OK --- doc/salome/examples/hexoticdemo.py | 2 +- doc/salome/examples/hexoticdemo_vl.py | 2 +- doc/salome/examples/hexoticsubdom1.py | 2 +- doc/salome/examples/hexoticsubdom2.py | 2 +- doc/salome/examples/hexoticsubdom3.py | 3 +-- doc/salome/examples/hexoticsubdom4.py | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/doc/salome/examples/hexoticdemo.py b/doc/salome/examples/hexoticdemo.py index 7b362da..baeb7c0 100644 --- a/doc/salome/examples/hexoticdemo.py +++ b/doc/salome/examples/hexoticdemo.py @@ -41,6 +41,6 @@ MG_Hexa.SetMinMaxSize(10, 20) MG_Hexa.SetSizeMap(faces[0], 10) # compute the mesh -mghexaMesh.Compute() +assert mghexaMesh.Compute(), "Meshing fails" # End of script diff --git a/doc/salome/examples/hexoticdemo_vl.py b/doc/salome/examples/hexoticdemo_vl.py index a2d9304..def14bd 100644 --- a/doc/salome/examples/hexoticdemo_vl.py +++ b/doc/salome/examples/hexoticdemo_vl.py @@ -28,6 +28,6 @@ MG_Hexa_Parameters.SetHexesMinLevel( 2 ) MG_Hexa_Parameters.SetHexesMaxLevel( 4 ) # Compute -Mesh_mghexa_vl.Compute() +assert Mesh_mghexa_vl.Compute(), "Meshing fails" # End of script diff --git a/doc/salome/examples/hexoticsubdom1.py b/doc/salome/examples/hexoticsubdom1.py index 3a6f4dc..70bb663 100644 --- a/doc/salome/examples/hexoticsubdom1.py +++ b/doc/salome/examples/hexoticsubdom1.py @@ -53,6 +53,6 @@ g3 = Mesh_mghexa_sd1.GroupOnFilter(SMESH.VOLUME, 'box - big sphere', aFilter3 ) g3.SetColor( SALOMEDS.Color( 0, 0, 1 )) # Compute -Mesh_mghexa_sd1.Compute() +assert Mesh_mghexa_sd1.Compute(), "Meshing fails" # End of script diff --git a/doc/salome/examples/hexoticsubdom2.py b/doc/salome/examples/hexoticsubdom2.py index bc12365..ffe1c30 100644 --- a/doc/salome/examples/hexoticsubdom2.py +++ b/doc/salome/examples/hexoticsubdom2.py @@ -52,7 +52,7 @@ g3 = Mesh_mghexa_sd2.GroupOnFilter(SMESH.VOLUME, 'box - big sphere', aFilter3 ) g3.SetColor( SALOMEDS.Color( 0, 0, 1 )) # Compute -Mesh_mghexa_sd2.Compute() +assert Mesh_mghexa_sd2.Compute(), "Meshing fails" # End of script diff --git a/doc/salome/examples/hexoticsubdom3.py b/doc/salome/examples/hexoticsubdom3.py index 0e7a698..2b31b1a 100644 --- a/doc/salome/examples/hexoticsubdom3.py +++ b/doc/salome/examples/hexoticsubdom3.py @@ -52,7 +52,6 @@ g3 = Mesh_mghexa_sd3.GroupOnFilter(SMESH.VOLUME, 'box - big sphere', aFilter3 ) g3.SetColor( SALOMEDS.Color( 0, 0, 1 )) # Compute -Mesh_mghexa_sd3.Compute() +assert Mesh_mghexa_sd3.Compute(), "Meshing fails" # End of script - diff --git a/doc/salome/examples/hexoticsubdom4.py b/doc/salome/examples/hexoticsubdom4.py index bcb24b4..7c3a3ed 100644 --- a/doc/salome/examples/hexoticsubdom4.py +++ b/doc/salome/examples/hexoticsubdom4.py @@ -21,6 +21,6 @@ Mesh_mghexa_sd4.Triangle(smeshBuilder.MG_CADSurf) Mesh_mghexa_sd4.Hexahedron(smeshBuilder.MG_Hexa).SetMinMaxHexes(4, 8).SetHexoticSdMode( 4 ) # Compute -Mesh_mghexa_sd4.Compute() +assert Mesh_mghexa_sd4.Compute(), "Meshing fails" # End of script -- 2.39.2