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 1792 for trunk/NEMO/OPA_SRC/IOM/iom.F90 – NEMO

Ignore:
Timestamp:
2009-12-21T16:05:15+01:00 (15 years ago)
Author:
rblod
Message:

Add fake agrif_root function, see ticket #628

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/IOM/iom.F90

    r1743 r1792  
    164164      ! if iom_open is called for the first time: initialize iom_file(:)%nfid to 0 
    165165      ! (could be done when defining iom_file in f95 but not in f90) 
    166 #if ! defined key_agrif 
    167       IF( iom_open_init == 0 ) THEN 
    168          iom_file(:)%nfid = 0 
    169          iom_open_init = 1 
    170       ENDIF 
    171 #else 
    172166      IF( Agrif_Root() ) THEN 
    173167         IF( iom_open_init == 0 ) THEN 
     
    176170         ENDIF 
    177171      ENDIF 
    178 #endif 
    179172      ! do we read or write the file? 
    180173      IF( PRESENT(ldwrt) ) THEN   ;   llwrt = ldwrt 
     
    199192      ! ============= 
    200193      clname   = trim(cdname) 
    201 #if defined key_agrif 
    202194      IF ( .NOT. Agrif_Root() .AND. .NOT. lliof ) THEN 
    203195         iln    = INDEX(clname,'/')  
     
    206198         clname=TRIM(cltmpn)//TRIM(Agrif_CFixed())//'_'//TRIM(clname) 
    207199      ENDIF 
    208 #endif     
    209200      ! which suffix should we use? 
    210201      SELECT CASE (iolib) 
Note: See TracChangeset for help on using the changeset viewer.