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

Ignore:
Timestamp:
2009-04-17T12:13:32+02:00 (15 years ago)
Author:
rblod
Message:

Correct bugs in resart and iom initialisations, see ticket #417

File:
1 edited

Legend:

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

    r1359 r1409  
    147147      ! if iom_open is called for the first time: initialize iom_file(:)%nfid to 0 
    148148      ! (could be done when defining iom_file in f95 but not in f90) 
     149#if ! defined key_agrif 
    149150      IF( iom_open_init == 0 ) THEN 
    150151         iom_file(:)%nfid = 0 
    151152         iom_open_init = 1 
    152153      ENDIF 
     154#else 
     155IF( Agrif_Root() ) THEN 
     156      IF( iom_open_init == 0 ) THEN 
     157         iom_file(:)%nfid = 0 
     158         iom_open_init = 1 
     159      ENDIF 
     160#endif 
    153161      ! do we read or write the file? 
    154162      IF( PRESENT(ldwrt) ) THEN   ;   llwrt = ldwrt 
Note: See TracChangeset for help on using the changeset viewer.