New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 774 for trunk/AGRIF/LIB/convert.y – NEMO

Ignore:
Timestamp:
2007-12-18T17:45:53+01:00 (16 years ago)
Author:
rblod
Message:

Update Agrif, see ticket:#39

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AGRIF/LIB/convert.y

    r663 r774  
    3131/* knowledge of the CeCILL-C license and that you accept its terms.           */ 
    3232/******************************************************************************/ 
    33 /* version 1.6                                                                */ 
     33/* version 1.7                                                                */ 
    3434/******************************************************************************/ 
    3535%{ 
     
    4242%union { 
    4343       int ival; 
    44        char na[LONGNOM]; 
     44       char na[LONG_C]; 
    4545       listnom * ln; 
    4646       } 
     
    8686   extern FILE * yyin ; 
    8787   FILE *dependglobaloutput; 
    88    char *tmp; 
    8988   int i; 
    9089   listnom *parcours; 
     
    133132   strcpy(mpiinitvar,""); 
    134133 
     134   length_last = 0 ; 
     135   length_first = 0 ; 
     136   length_v_typevar = 0 ; 
     137   length_v_nomvar = 0 ; 
     138   length_v_dimchar = 0 ; 
     139   length_v_modulename = 0 ; 
     140   length_v_commonname = 0 ; 
     141   length_v_vallengspec = 0 ; 
     142   length_v_nameinttypename = 0 ; 
     143   length_v_commoninfile = 0 ; 
     144   length_v_subroutinename = 0 ; 
     145   length_v_precision = 0 ; 
     146   length_v_IntentSpec = 0 ; 
     147   length_v_initialvalue = 0 ; 
     148   length_v_readedlistdimension = 0 ; 
     149   length_u_usemodule = 0 ; 
     150   length_u_charusemodule = 0 ; 
     151   length_u_cursubroutine = 0 ; 
     152   length_u_modulename = 0 ; 
     153   length_n_name = 0 ; 
     154   length_c_namevar = 0 ; 
     155   length_c_namepointedvar = 0 ; 
     156   length_o_nom = 0 ; 
     157   length_o_module = 0 ; 
     158   length_a_nomvar = 0 ; 
     159   length_a_subroutine = 0 ; 
     160   length_a_module = 0 ; 
     161   length_t_usemodule = 0 ; 
     162   length_t_cursubroutine = 0 ; 
     163   length_curfilename = 0 ; 
     164   length_nomfileoutput = 0 ; 
     165   length_motparse = 0 ; 
     166   length_mainfile = 0 ; 
     167   length_nomdir = 0 ; 
     168   length_commondirout = 0 ; 
     169   length_commondirin = 0 ; 
     170   length_filetoparse = 0 ; 
     171   length_curbuf = 0 ; 
     172   length_toprintglob = 0 ; 
     173   length_tmpvargridname = 0 ; 
     174   length_ligne_Subloop = 0 ; 
     175   length_lvargridname_toamr = 0 ; 
     176   length_toprint_utilagrif = 0 ; 
     177   length_toprinttmp_utilchar = 0 ; 
     178   length_ligne_writedecl = 0 ; 
     179   length_newname_toamr = 0 ; 
     180   length_newname_writedecl = 0 ; 
     181   length_ligne_toamr = 0 ; 
     182   length_tmpligne_writedecl = 0 ; 
     183   value_char_size = 0 ; 
     184   value_char_size1 = 0 ; 
     185   value_char_size2 = 0 ; 
     186   value_char_size3 = 0 ; 
     187 
    135188   checkexistcommon=1; 
    136189   todebug=0; 
     
    149202   mark = 0 ; 
    150203   shouldincludempif = 0 ; 
     204   Read_val_max(); 
    151205/******************************************************************************/ 
    152206/*  2-  Program arguments                                                     */ 
     
    214268   } 
    215269 
     270   Save_Length(nomdir,34); 
     271   Save_Length(commondirout,35); 
     272   Save_Length(commondirin,36); 
     273   Save_Length(filetoparse,37); 
     274 
    216275/******************************************************************************/ 
    217276/*  3-  Parsing of the  conv file <name>.in                                   */ 
     
    224283   } 
    225284   strcpy(mainfile,argv[1]); 
     285   Save_Length(mainfile,33); 
    226286 
    227287   if ( strstr(filetoparse,".f90") || 
     
    267327   /* Update all lists                                                        */ 
    268328   ListUpdate(); 
     329   /*                                                                         */ 
     330   Clean_List_Global_Var(); 
    269331   /* Indice tabvars identification                                           */ 
    270332   IndiceTabvarsIdentification(); 
     
    296358   processfortran(filetoparse); 
    297359 
     360   newvar = (listvar *)NULL; 
     361/*newvar = List_Global_Var; */ 
     362   while ( newvar ) 
     363   { 
     364      printf("++++ %s %d %s %s %s\n", 
     365      newvar->var->v_nomvar, 
     366      newvar->var->v_nbdim, 
     367      newvar->var->v_subroutinename, 
     368      newvar->var->v_modulename, 
     369      newvar->var->v_typevar 
     370             ); 
     371      newvar = newvar->suiv; 
     372   } 
    298373/******************************************************************************/ 
    299374/*  6-  Write informations in output files                                    */ 
     
    332407   creefichieramr(NameTamponfile); 
    333408 
     409   Write_val_max(); 
    334410 
    335411   if ( todebug == 1 ) printf("Out of CONV \n"); 
Note: See TracChangeset for help on using the changeset viewer.