Hello,
Thanks for the help. I have successfully defined some Keywords in the telemac3d.dico and used them in the steering file. For example, I defined a logical type keyword called "TCPBE FLOCULATION MODEL".
First, I add the definition in telemac3d.dico, give the INDEX number and MNEMO (used as variable name in Telemac-3D):
NOM = 'TCPBE FLOCULATION MODEL'
NOM1 = 'TCPBE FLOCULATION MODEL'
TYPE = LOGIQUE
INDEX = 127
MNEMO = 'TCPBE'
TAILLE = 0
DEFAUT = NON
DEFAUT1 = NO
RUBRIQUE = 'SEDIMENT'
RUBRIQUE1 = 'SEDIMENT'
NIVEAU = 1
AIDE = 'Decides if TCPBE FLOCULATION MODEL is to be used'
AIDE1 = 'Decides if TCPBE FLOCULATION MODEL is to be used'
Second, I declared TCPBE as a logical variable in declarations_telemac3d.f like:
! FOR TCPBE FLOCCULATION MODEL
LOGICAL TCPBE
Then, I add a line in lecdon_telemac3d.f to get the value for the keyword:
TCPBE = MOTLOG(ADRESS(3, 127))
For different types of keywords, use different variable:
Integer number keyword, MOTINT(ADRESS(1,INDEX))
Real number keyword, MOTREA(ADRESS(2, INDEX))
Logical keyword, MOTLOG(ADRESS(3, INDEX))
Character keyword, MOTCAR(ADRESS(4, INDEX))
Hope this can be helpful to others.
Best regards,
Qilong