Welcome, Guest
Username: Password: Remember me

TOPIC: New keyword in cas file

New keyword in cas file 10 years 5 months ago #13469

  • mary
  • mary's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1
Dear all,

I would like to know if it is possible to add a new keyword to the .cas file. If so, how should I proceed? How can I deal with .dico file? Do I need to re-compile all Telemac subroutines again?

Thanks in advance!

Kind regards,
Maria
The administrator has disabled public write access.

New keyword in cas file 10 years 5 months ago #13470

  • jmhervouet
  • jmhervouet's Avatar
Hello,

Yes it is possible, on your branch... You just need to look in lecdon_telemac3d how a keyword is treated with its type (INTEGER, etc.) and its rank (INDEX in the dictionnary) in the list, find an available INDEX, choose a Fortran name that must be added in the DECLARATIONS_TELEMAC3D.

So :

1) find an available index, let's say 95 for an integer
2) add a section in the dictionnary like :

NOM='MON NOUVEAU MOT-CLE'
NOM1= 'MY NEW KEYWORD'
TYPE = INTEGER
INDEX=95
etc.

3) Add the Fortran key-word in DECLARATIONS_TELEMAC3D

INTEGER MY_NEW_KEYWORD

4) change lecdon_telemac3d.f :

MY_NEW_KEYWORD=MOTINT(ADRESS(1,95))


Recompile all telemac-3D (requested by the new DECLARATIONS_TELEMAC3D).

That's all... regards,

Jean-Michel
The administrator has disabled public write access.
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.