dicoParMC={}
for simp in self.dictSimp:
- if simp in TELEMACParser.__dict__ : TELEMACParser.__dict__[simp],(self,)
+ if simp in TELEMACParser.__dict__ : TELEMACParser.__dict__[simp](self,)
for simp in self.dictSimp:
if simp in ListeSupprimeCasToEficas: continue
commentaire="COMMENTAIRE("+repr(dicoComment['fin'])+")\n"
self.textePy=self.textePy+commentaire
+ #print (self.textePy)
return self.textePy
def convertFACT(self,obj,nom,valeur):
+ # traitement LIQUID_BOUNDARIES
if nom in TELEMACParser.__dict__ :
- TELEMACParser.__dict__[nom],(self,)
+ TELEMACParser.__dict__[nom](self,)
return
self.textePy += nom + "=_F( "
self.traiteMC(valeur)
listeOut.insert(i,k)
return listeOut
- def LIQUID_BOUNDARIES(self):
- texte_Boundaries="LIQUID_BOUNDARIES=( "
+ def BOUNDARY_CONDITIONS(self):
+ texte_Boundaries="BOUNDARY_CONDITIONS=_F(LIQUID_BOUNDARIES=( "
if 'PRESCRIBED_ELEVATIONS' in self.dictSimp:
valeursPE=self.dictSimp["PRESCRIBED_ELEVATIONS"]
if not type(valeursPE)==list : valeursPE = (valeursPE,)
continue
print ("pb texte_Boundaries avec la valeur numero ", e)
- texte_Boundaries +="),\n"
+ texte_Boundaries +="),),"
self.textePy += texte_Boundaries
"""
"""
s=PythonGenerator.generMCFACT(self,obj)
- if obj.nom in TELEMACGenerator.__dict__ : TELEMACGenerator.__dict__[obj.nom],(self,obj)
+ if obj.nom in TELEMACGenerator.__dict__ : TELEMACGenerator.__dict__[obj.nom](self,obj)
return s
def LIQUID_BOUNDARIES(self,obj):
+ print ('jkljklj')
if 'BOUNDARY_TYPE' in obj.liste_mc_presents() :
objForme=obj.get_child('BOUNDARY_TYPE')
valForme=objForme.valeur