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 2715 for trunk/NEMOGCM/EXTERNAL/AGRIF/LIB/WorkWithlistofmodulebysubroutine.c – NEMO

Ignore:
Timestamp:
2011-03-30T17:58:35+02:00 (13 years ago)
Author:
rblod
Message:

First attempt to put dynamic allocation on the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/EXTERNAL/AGRIF/LIB/WorkWithlistofmodulebysubroutine.c

    r2528 r2715  
    6161           List_ModuleUsed_Var = Readthedependfile 
    6262                               (tmplistmodule->u_usemodule,List_ModuleUsed_Var); 
    63  
     63         printf("PPPPPPPPPPPPPP\n"); 
    6464           List_GlobParamModuleUsed_Var = ReaddependParameterList 
    6565                      (tmplistmodule->u_usemodule,List_GlobParamModuleUsed_Var); 
     
    281281/*                                                                            */ 
    282282/******************************************************************************/ 
    283 void WriteUsemoduleDeclaration() 
     283void WriteUsemoduleDeclaration(char *cursubroutinename) 
    284284{ 
    285285  listusemodule *newmodule; 
     286   
    286287 
    287288  newmodule = List_NameOfModuleUsed; 
     
    290291  while ( newmodule ) 
    291292  { 
    292      if ( !strcasecmp(newmodule->u_cursubroutine,subroutinename) ) 
     293     if ( !strcasecmp(newmodule->u_cursubroutine,cursubroutinename) ) 
     294     { 
     295     if (strcmp(newmodule->u_charusemodule,"")) 
    293296     { 
    294297             fprintf(fortranout,"      USE %s \n" 
    295298                                                   ,newmodule->u_charusemodule); 
    296299     } 
     300     } 
    297301        newmodule = newmodule ->suiv; 
    298302  } 
Note: See TracChangeset for help on using the changeset viewer.