]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
*** empty log message ***
authorPascale Noyret <pascale.noyret@edf.fr>
Tue, 17 Mar 2009 10:06:07 +0000 (10:06 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Tue, 17 Mar 2009 10:06:07 +0000 (10:06 +0000)
generator/generator_cuve2dg.py

index b1c91e2cf96092216d90aa106cdb7589a8d222fc..1e616ce9ceefb99c87f1ccf7e87e6de930569b83 100644 (file)
@@ -100,8 +100,10 @@ class Cuve2dgGenerator(PythonGenerator):
       self.texteCuve+="############################################################################################"+"\n"
       self.texteCuve+="# OPTIONS : Fichier Option.don"+"\n"
       self.texteCuve+="############################################################################################"+"\n"
-      self.texteCuve+="INCRTPS = "+ str(self.dico_mot["IncrementTemporel"])+"\n"
-      self.imprime(2,(self.dico_mot["ProfilTemporel_Pression"]))
+      if self.dico_mot.has_key('IncrementTemporel'):
+         self.texteCuve+="INCRTPS = "+ str(self.dico_mot["IncrementTemporel"])+"\n"
+      if self.dico_mot.has_key('ProfilTemporel_Pression'):
+         self.imprime(2,(self.dico_mot["ProfilTemporel_Pression"]))
       
 
    def imprime(self,nbdeColonnes,valeur):