"""
def verifie(self):
- if len(self.listeCODE) != len(set(self.listeCODE)):
+ liste=[]
+ for i in self.listeCODE:
+ liste.append(i.keys()[0])
+ if len(liste) != len(set(liste)):
raise AsException("il n'est pas prevu d avoir deux fois le meme code dans ce schema")
def PYGMEE(self,execution) :
dicoPygmee=self.dictMCVal["PYGMEE"]
+ self.dictPYGMEE=dicoPygmee
monFichier=self.config.PATH_PYGMEE+"/pygmee_input.txt"
#Lecture du fichier a trous
def BENHUR(self,execution) :
dicoBenhur=self.dictMCVal["BENHUR"]
- if ("PYGMEE" in self.dictMCVal.keys()) and '_PYGMEE_TAILLE' in self.dictMCVal['PYGMEE']:
- dicoBenhur["_PYGMEE_TAILLE"]=self.dictMCVal["PYGMEE"]['_PYGMEE_TAILLE']
+ if hasattr(self,'dictPYGMEE') and '_PYGMEE_TAILLE' in self.dictMCVal['PYGMEE']:
+ dicoBenhur["_PYGMEE_TAILLE"]=self.dictPYGMEE['_PYGMEE_TAILLE']
else :
dicoBenhur["_PYGMEE_TAILLE"]=0
print "Attention la variable Taille_VER non definie"
print "dans PYGMEEYACS"
return ""
- def ASTER(self) :
+ def ASTER(self,execution) :
print "Generation de ASTER"
dicoAster=self.dictMCVal["ASTER"]
- dicoPygmee=self.dictMCVal["PYGMEE"]
nom_racine=self.config.PATH_MODULE+"/"+self.config.NAME_SCHEME+"/"+self.config.NAME_SCHEME
nom_fichier_ASTER=nom_racine+"_aster.comm"
f = file(self.config.repIni+"/s_poly_st_1_aster_template.comm","r")
chaine = f.read()
f.close()
- chaine2=self.remplaceDICO(chaine,dicoPygmee)
+ chaine2=self.remplaceDICO(chaine,self.dictPYGMEE)
chaine=self.remplaceDICO(chaine2,dicoAster)
f=open(nom_fichier_ASTER,'wb')
else:
return ""
- def GMSH(self) :
+ def GMSH(self,execution) :
dicoGmsh=self.dictMCVal["GMSH"]
if ('_GMSH_LANCEMENT' in dicoGmsh.keys()) and dicoGmsh['_GMSH_LANCEMENT'] == 'oui':
commande="cd "+self.config.PATH_MODULE+";"