]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
il: mise en place macro Include (suite)
authorilct <>
Fri, 9 Nov 2012 15:33:09 +0000 (15:33 +0000)
committerilct <>
Fri, 9 Nov 2012 15:33:09 +0000 (15:33 +0000)
generator/generator_CARMEL3D.py

index d5ca886abf33dfaa8ec84db4b1151e1060dcf742..8c07c9407cedd5b327b32927cdd8fcf14a928570 100644 (file)
@@ -201,12 +201,19 @@ class CARMEL3DGenerator(PythonGenerator):
         import generator
         monGenerateur=generator.plugins["CARMEL3D"]()
         jdc_aux_texte=monGenerateur.gener(obj.jdc_aux)
-        print "__________________________________________________"
-        print monGenerateur.texteCarmel3D
-        print monGenerateur.dictMaterConductor
-        # self.dictMaterConductor += monGenerateur.dictMaterConductor
-        print "__________________________________________________"
-        s=PythonGenerator.generETAPE(self,obj)
+        print "_______MACRO_______________________________________"
+        if self.debug: print "jdc_aux_texte :" , jdc_aux_texte
+
+        if monGenerateur.dictMaterConductor != {} :
+             for cle in monGenerateur.dictMaterConductor:
+                  print "cle= ", cle
+                  self.dictMaterConductor[cle] = monGenerateur.dictMaterConductor[cle]
+        if monGenerateur.dictMaterDielectric != {} :
+             for cle in monGenerateur.dictMaterDielectric:
+                  self.dictMaterDielectric[cle] = monGenerateur.dictMaterDielectric[cle]
+              
+        print "________FIN MACRO______________________________________"
+        s=PythonGenerator.generMACRO_ETAPE(self,obj)
         return s
 
 #----------------------------------------------------------------------------------------