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 11901 for NEMO/branches/2019/dev_r11756_SI3restart_XIOS/src/OCE/IOM/restart.F90 – NEMO

Ignore:
Timestamp:
2019-11-13T18:27:42+01:00 (4 years ago)
Author:
andmirek
Message:

Ticket #2323 SI3 restart read/write with XIOS for AGRIF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11756_SI3restart_XIOS/src/OCE/IOM/restart.F90

    r11870 r11901  
    131131      INTEGER, INTENT(in) ::   kt   ! ocean time-step 
    132132      !!---------------------------------------------------------------------- 
     133 
    133134                     IF(lwxios) CALL iom_swap(      cwxios_context          ) 
    134135                     CALL iom_rstput( kt, nitrst, numrow, 'rdt'    , rdt       , ldxios = lwxios)   ! dynamics time step 
     
    207208! restart) 
    208209         IF(.NOT.lxios_set) lrxios = lrxios.AND.lxios_sini 
    209          IF( lrxios) THEN 
     210         IF( lrxios .AND. (.NOT. lxios_set)) THEN 
    210211             crxios_context = 'nemo_rst' 
    211              IF( .NOT. lxios_set ) THEN 
    212                  IF(lwp) WRITE(numout,*) 'Enable restart reading by XIOS' 
    213                  CALL iom_init( crxios_context, TRIM(clpath)//cn_ocerst_in, ld_tmppatch = .false. ) 
    214                  lxios_set = .TRUE. 
     212             lxios_set = .TRUE. 
     213             IF( TRIM(Agrif_CFixed()) /= '0') THEN 
     214                IF(lwp) WRITE(numout,*) 'Enable restart reading by XIOS for AGRIF' 
     215                CALL iom_init( crxios_context, TRIM(clpath)//TRIM(Agrif_CFixed())//"_"//cn_ocerst_in, ld_tmppatch = .false. ) 
     216             ELSE 
     217                IF(lwp) WRITE(numout,*) 'Enable restart reading by XIOS' 
     218                CALL iom_init( crxios_context, TRIM(clpath)//cn_ocerst_in, ld_tmppatch = .false. ) 
    215219             ENDIF 
    216          ENDIF 
    217          IF( TRIM(Agrif_CFixed()) /= '0' .AND. lrxios) THEN 
    218              CALL iom_init( crxios_context, TRIM(clpath)//cn_ocerst_in, ld_tmppatch = .false. ) 
    219              IF(lwp) WRITE(numout,*) 'Enable restart reading by XIOS for AGRIF' 
    220              lxios_set = .TRUE. 
    221220         ENDIF  
    222221      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.