From 5dca6ddbcf2a61ec079067b3961aa84d39471dad Mon Sep 17 00:00:00 2001 From: ilct <> Date: Fri, 9 Nov 2012 15:33:09 +0000 Subject: [PATCH] il: mise en place macro Include (suite) --- generator/generator_CARMEL3D.py | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/generator/generator_CARMEL3D.py b/generator/generator_CARMEL3D.py index d5ca886a..8c07c940 100644 --- a/generator/generator_CARMEL3D.py +++ b/generator/generator_CARMEL3D.py @@ -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 #---------------------------------------------------------------------------------------- -- 2.39.2