Welcome, Guest
Username: Password: Remember me

TOPIC: I cannot find the right place to locate a keyword in source code file

I cannot find the right place to locate a keyword in source code file 8 years 5 months ago #21746

  • viola
  • viola's Avatar
Hi everyone,

As for some keywords(eg. FORMULATION FOR DEPOSITION AND EROSION), there are no detailed information in manual, but I want to kown more about it so I searched the fortran files in sisyphe directory, but could locate this keyword. Does somebody knows where to locate this kind of keyword? I just want to know the exact implement in the source code. Thanks in advance!

Viola
The administrator has disabled public write access.

I cannot find the right place to locate a keyword in source code file 8 years 5 months ago #21748

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi

This is not trivial but the method is:
Look for the keyword in the dictionary to identify the type and the index.
Here we found:
/ NOTE JMH : CE MOT-CLEF N EST PLUS UTILISE
NOM = 'FORMULATION POUR DEPOT ET EROSION'
NOM1 = 'FORMULATION FOR DEPOSITION AND EROSION'
TYPE = ENTIER
INDEX = 36
TAILLE = 0
DEFAUT = 2
DEFAUT1 = 2
CHOIX =
'1="KRONE ET PARTHENIADES"';
'2="FREDSOE / ROUSE"'
CHOIX1 =
'1="KRONE ET PARTHENIADES"';
'2="FREDSOE / ROUSE"'
RUBRIQUE = 'SUSPENSION'
RUBRIQUE1 = 'SUSPENSION'
NIVEAU = 1
AIDE = ' '
AIDE1 = ' '

Then in lecdon_xxx you could search for the variable associate to this keyword.
Type = ENTIER --> look for MOTINT (LOGIQUE --> MOTLOG, REEL --> MOTREA and CARACTERE --> MOTCAR)
Index gives the index in the array

In your case, you will find:
DEPER         = MOTINT( ADRESS(1, 36) )

Then in the sources, you could look for the variable DEPER

But in fact, for this particular keyword, in the dico, you have a commentary (in french sorry) which indicate that this keyword is no longer used...

Hope this helps
Christophe
The administrator has disabled public write access.

I cannot find the right place to locate a keyword in source code file 8 years 5 months ago #21757

  • viola
  • viola's Avatar
Dear Christophe,

It really helps! As you say, I read the *.dico file, not so detailed,so the source code is another best way for me, thank you!

Viola
The administrator has disabled public write access.
Moderators: Pablo, pavans

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