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/WorkWithglobliste.c – 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/WorkWithglobliste.c

    r774 r1200  
    7373   } 
    7474} 
     75 
     76void checkandchangedims(listvar *listsecondpass) 
     77{ 
     78listvar *parcours; 
     79listvar *parcours1; 
     80variable * newvar; 
     81variable * oldvar; 
     82 
     83int out ; 
     84 
     85printliste(List_Global_Var); 
     86printliste(List_SubroutineDeclaration_Var); 
     87 
     88parcours = listsecondpass; 
     89while (parcours) 
     90{ 
     91newvar = parcours->var; 
     92parcours1 = List_SubroutineDeclaration_Var; 
     93out = 0; 
     94while (parcours1 && out == 0) 
     95{ 
     96  oldvar = parcours1->var; 
     97  if (!strcasecmp(newvar->v_nomvar,oldvar->v_nomvar) && !strcasecmp(newvar->v_subroutinename,subroutinename)) 
     98   { 
     99   if (newvar->v_dimensiongiven == 1) 
     100   { 
     101    strcpy(oldvar->v_dimension->dim.last,newvar->v_dimension->dim.last); 
     102    strcpy(oldvar->v_dimension->dim.first,newvar->v_dimension->dim.first);     
     103   } 
     104   out = 1; 
     105   } 
     106  parcours1 = parcours1->suiv; 
     107} 
     108parcours = parcours->suiv; 
     109} 
     110printliste(List_SubroutineDeclaration_Var); 
     111} 
Note: See TracChangeset for help on using the changeset viewer.