Salome HOME
ContrĂ´le des calculs de maillage
[modules/smesh.git] / src / Tools / blocFissure / gmu / meshBlocPart.py
index ccde33c9c486400ab10771a745696531714849bc..a273b4916aaf3a263cdc2b71c733c8e386915709 100644 (file)
@@ -194,7 +194,14 @@ def meshBlocPart(blocPartition, faceFissure, tore, centres, edges, diams, circle
     putName(algo3d, "algo3d_ellipsoide")
     putName(hypo3d, "hypo3d_ellipsoide")
 
     putName(algo3d, "algo3d_ellipsoide")
     putName(hypo3d, "hypo3d_ellipsoide")
 
-  isDone = bloc1.Compute()
+  is_done = bloc1.Compute()
+  text = "bloc1.Compute"
+  if is_done:
+    logging.info(text+" OK")
+  else:
+    text = "Erreur au calcul du maillage.\n" + text
+    logging.info(text)
+    raise Exception(text)
 
   nbRemoved = bloc1.RemoveOrphanNodes()
 
 
   nbRemoved = bloc1.RemoveOrphanNodes()
 
@@ -230,9 +237,9 @@ def meshBlocPart(blocPartition, faceFissure, tore, centres, edges, diams, circle
   putName(hypo3d, "hypo3d_bloc")
 
   is_done = blocMesh.Compute()
   putName(hypo3d, "hypo3d_bloc")
 
   is_done = blocMesh.Compute()
-  text = "meshBlocPart Compute"
+  text = "blocMesh.Compute"
   if is_done:
   if is_done:
-    logging.info(text)
+    logging.info(text+" OK")
   else:
     text = "Erreur au calcul du maillage.\n" + text
     logging.info(text)
   else:
     text = "Erreur au calcul du maillage.\n" + text
     logging.info(text)