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 8836 for branches/2017/dev_r8600_xios_read_write_v2/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90 – NEMO

Ignore:
Timestamp:
2017-11-28T15:45:20+01:00 (6 years ago)
Author:
andmirek
Message:

#1953 and #1962 Techinal corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_r8600_xios_read_write_v2/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90

    r8831 r8836  
    219219         IF(.NOT.lxios_set) lrxios = lrxios.AND.lxios_sini 
    220220         IF( lrxios) THEN 
    221            crxios_context = 'nemo_rst' 
    222          if(.NOT.lxios_set) then 
    223              IF(lwp) WRITE(numout,*) 'Enable restart reading by XIOS' 
     221             crxios_context = 'nemo_rst' 
     222             IF( .NOT.lxios_set ) THEN 
     223                 IF(lwp) WRITE(numout,*) 'Enable restart reading by XIOS' 
     224                 CALL iom_init( crxios_context ) 
     225                 lxios_set = .TRUE. 
     226             ENDIF 
     227         ENDIF 
     228         IF( TRIM(Agrif_CFixed()) /= '0' .AND. lrxios) THEN 
    224229             CALL iom_init( crxios_context ) 
     230             IF(lwp) WRITE(numout,*) 'Enable restart reading by XIOS for AGRIF' 
    225231             lxios_set = .TRUE. 
    226          endif 
    227          ENDIF 
    228          IF( TRIM(Agrif_CFixed()) /= '0' .AND. lrxios) THEN 
    229             CALL iom_init( crxios_context ) 
    230             IF(lwp) WRITE(numout,*) 'Enable restart reading by XIOS for AGRIF' 
    231             lxios_set = .TRUE. 
    232232         ENDIF  
    233233      ENDIF 
     
    246246      REAL(wp) ::   zrdt 
    247247      INTEGER  ::   jk 
    248       TYPE(xios_duration):: dtime 
    249       integer::ni,nj,nk 
    250       REAL(wp), DIMENSION(jpi, jpj, jpk) :: w3d  
     248      REAL(wp), DIMENSION(jpi, jpj, jpk) :: w3d 
    251249      !!---------------------------------------------------------------------- 
    252250 
Note: See TracChangeset for help on using the changeset viewer.