]> SALOME platform Git repositories - modules/superv.git/blobdiff - examples/GraphMerge1.py
Salome HOME
Error messages
[modules/superv.git] / examples / GraphMerge1.py
index 8ab8feadf6fc03c62afe818134ceafedf466c1e6..39955f4d9a28e6e435d30b6c1cdd9c5919c23475 100755 (executable)
@@ -8,7 +8,9 @@ from GraphSwitch import *
 from GraphSwitch1 import *
 
 # Merge of GraphSwitch1 in GraphSwitch
-GraphSwitch.Merge( GraphSwitch1 )
+statmerge = GraphSwitch.Merge( GraphSwitch1 )
+if statmerge == 0 :
+    print "Failed to merge GraphSwitch1 in GraphSwitch"
 
 # Create a variable for each node of GraphSwitch :
 # IsOdd,IsOdd_1,InitLoopSwitch,InitLoop,EndOfInitLoopSwitch,EndOfInitLoop,Switch,Switch_1,EndOfSwitch,EndSwitch