- Timestamp:
- 2020-12-01T09:21:09+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_12905_xios_restart/src/OCE/ZDF/zdfric.F90
r13871 r13932 206 206 ! !* Read the restart file 207 207 IF( ln_rstart ) THEN 208 IF( lrxios ) CALL iom_swap( TRIM(cr_ocerst_cxt) )209 208 id1 = iom_varid( numror, 'avt_k', ldstop = .FALSE. ) 210 209 id2 = iom_varid( numror, 'avm_k', ldstop = .FALSE. ) 211 210 ! 212 211 IF( MIN( id1, id2 ) > 0 ) THEN ! restart exists => read it 213 CALL iom_get( numror, jpdom_auto, 'avt_k', avt_k , ldxios = lrxios)214 CALL iom_get( numror, jpdom_auto, 'avm_k', avm_k , ldxios = lrxios)212 CALL iom_get( numror, jpdom_auto, 'avt_k', avt_k ) 213 CALL iom_get( numror, jpdom_auto, 'avm_k', avm_k ) 215 214 ENDIF 216 IF( lrxios ) CALL iom_swap( TRIM(cxios_context) )217 215 ENDIF 218 216 ! !* otherwise Kz already set to the background value in zdf_phy_init … … 221 219 ! ! ------------------- 222 220 IF(lwp) WRITE(numout,*) '---- ric-rst ----' 223 IF( lwxios ) CALL iom_swap( cw_ocerst_cxt ) 224 CALL iom_rstput( kt, nitrst, numrow, 'avt_k', avt_k, ldxios = lwxios ) 225 CALL iom_rstput( kt, nitrst, numrow, 'avm_k', avm_k, ldxios = lwxios) 226 IF( lwxios ) CALL iom_swap( cxios_context ) 221 CALL iom_rstput( kt, nitrst, numrow, 'avt_k', avt_k ) 222 CALL iom_rstput( kt, nitrst, numrow, 'avm_k', avm_k) 227 223 ! 228 224 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.