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 6436 for branches/UKMO/nemo_v3_6_STABLE_copy/NEMOGCM/EXTERNAL – NEMO

Ignore:
Timestamp:
2016-04-07T15:33:32+02:00 (8 years ago)
Author:
timgraham
Message:

Updated to r6424 of nemo_v3_6_STABLE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/nemo_v3_6_STABLE_copy/NEMOGCM/EXTERNAL/AGRIF/LIB/UtilAgrif.c

    r6237 r6436  
    274274     } 
    275275     if ( parcours && parcours->o_val != 0 ) 
    276         fprintf(fileout,"\n      use Agrif_Util\n"); 
    277      else 
    278         fprintf(fileout,"\n      use Agrif_Types, only : Agrif_tabvars\n"); 
     276       { 
     277        if( strcasecmp(subroutinename,"Agrif_InvLoc") )    
     278       fprintf(fileout,"\n      USE Agrif_Util \n"); 
     279       else fprintf(fileout,"\n      USE Agrif_Types \n"); 
     280 
     281       } 
    279282  } 
    280283} 
     
    286289    int out; 
    287290 
    288     if ( firstpass == 0 ) 
    289     { 
    290         parcours = List_NameOfModuleUsed; 
    291         out = 0 ; 
    292         while ( parcours && out == 0 ) 
    293         { 
    294             if ( !strcasecmp(parcours->u_usemodule, "Agrif_Util")   && 
    295                  !strcasecmp(parcours->u_modulename, curmodulename) && 
    296                  !strcasecmp(parcours->u_cursubroutine, subroutinename) ) 
    297                 out = 1; 
    298             else 
    299                 parcours = parcours->suiv; 
    300         } 
    301         if ( out == 0 ) 
    302         { 
    303             fprintf(fileout,"\n      use Agrif_Util\n"); 
    304         } 
    305     } 
     291  if ( firstpass == 0 ) 
     292  { 
     293     parcours = List_NameOfModuleUsed; 
     294     out = 0 ; 
     295     while ( parcours && out == 0 ) 
     296     { 
     297        if ( !strcasecmp(parcours->u_usemodule,"Agrif_Util")     && 
     298             !strcasecmp(parcours->u_modulename,curmodulename)   && 
     299             !strcasecmp(parcours->u_cursubroutine,subroutinename) 
     300            ) out = 1; 
     301        else parcours = parcours->suiv; 
     302     } 
     303     if ( out == 0 ) 
     304     { 
     305       if( strcasecmp(subroutinename,"Agrif_InitWorkspace") )    
     306       fprintf(fileout,"\n      USE Agrif_Util \n"); 
     307       else fprintf(fileout,"\n      USE Agrif_Types \n"); 
     308     } 
     309  } 
    306310} 
    307311 
Note: See TracChangeset for help on using the changeset viewer.