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 1200 for trunk/AGRIF/LIB/convert.y – NEMO

Ignore:
Timestamp:
2008-09-24T15:05:20+02:00 (16 years ago)
Author:
rblod
Message:

Adapt Agrif to the new SBC and correct several bugs for agrif (restart writing and reading), see ticket #133
Note : this fix does not work yet on NEC computerq (sxf90/360)

File:
1 edited

Legend:

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

    r774 r1200  
    8989   listnom *parcours; 
    9090   listvar *newvar; 
     91   int stylegiven = 0; 
     92   int infreegiven ; 
     93   int infixedgiven ; 
     94   int lengthmainfile; 
    9195 
    9296   if (argc < 2) 
     
    9599       printf(" [-comdirin   <directory>] [-comdirout <directory>]\n"); 
    96100       printf(" [-convfile  <FILENAME >] -SubloopScalar -SubloopScalar1 \n"); 
     101       printf(" [-free|-fixed]\n"); 
    97102       exit(0); 
    98103   } 
     
    122127   tmpuselocallist = (listusemodule *)NULL; 
    123128   List_ContainsSubroutine = (listnom *)NULL; 
     129   oldfortranout = (FILE *)NULL; 
    124130 
    125131   strcpy(mainfile,argv[1]); 
     
    185191   value_char_size2 = 0 ; 
    186192   value_char_size3 = 0 ; 
     193   inallocate = 0; 
     194   infixed = 1; 
     195   infree  = 0; 
    187196 
    188197   checkexistcommon=1; 
     
    235244         strcpy(filetoparse,argv[i+1]); 
    236245         i++; 
    237       } 
     246         lengthmainfile = strlen(filetoparse); 
     247         if (!strcasecmp(&filetoparse[lengthmainfile-4],".f90")) 
     248         { 
     249         infixed = 0; 
     250         infree = 1; 
     251         } 
     252         else 
     253         { 
     254         infixed = 1; 
     255         infree = 0; 
     256         } 
     257      } 
     258      else if (!strcasecmp(argv[i],"-free")) /* file to parse        */ 
     259      { 
     260         stylegiven = 1; 
     261         infreegiven  = 1 ; 
     262         infixedgiven = 0; 
     263      }    
     264      else if (!strcasecmp(argv[i],"-fixed")) /* file to parse        */ 
     265      { 
     266         stylegiven = 1; 
     267         infreegiven  = 0; 
     268         infixedgiven = 1; 
     269      }          
    238270      else if (!strcasecmp(argv[i],"-SubloopScalar")) /* file to parse        */ 
    239271      { 
     
    268300   } 
    269301 
     302   if (stylegiven == 1)  
     303   { 
     304   infree = infreegiven; 
     305   infixed = infixedgiven;    
     306   } 
    270307   Save_Length(nomdir,34); 
    271308   Save_Length(commondirout,35); 
Note: See TracChangeset for help on using the changeset viewer.