- Timestamp:
- 2017-12-06T16:16:55+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_METO_2017/NEMOGCM/NEMO/SAS_SRC/daymod.F90
r8910 r8924 30 30 USE in_out_manager ! I/O manager 31 31 USE prtctl ! Print control 32 USE iom ! I/O manager32 USE iom ! 33 33 USE timing ! Timing 34 34 USE restart ! restart … … 142 142 ! call day to set the calendar parameters at the begining of the current simulaton. needed by iom_init 143 143 CALL day( nit000 ) 144 IF( lwxios ) THEN145 CALL iom_set_rstw_var_active('kt')146 CALL iom_set_rstw_var_active('ndastp')147 CALL iom_set_rstw_var_active('adatrj')148 CALL iom_set_rstw_var_active('ntime')149 ENDIF150 144 ! 151 145 END SUBROUTINE day_init … … 324 318 IF( iom_varid( numror, 'kt', ldstop = .FALSE. ) > 0 ) THEN 325 319 ! Get Calendar informations 326 CALL iom_get( numror, 'kt', zkt , ldxios = lrxios) ! last time-step of previous run320 CALL iom_get( numror, 'kt', zkt ) ! last time-step of previous run 327 321 IF(lwp) THEN 328 322 WRITE(numout,*) ' *** Info read in restart : ' … … 343 337 IF ( nrstdt == 2 ) THEN 344 338 ! read the parameters corresponding to nit000 - 1 (last time step of previous run) 345 CALL iom_get( numror, 'ndastp', zndastp , ldxios = lrxios)339 CALL iom_get( numror, 'ndastp', zndastp ) 346 340 ndastp = NINT( zndastp ) 347 CALL iom_get( numror, 'adatrj', adatrj , ldxios = lrxios)348 CALL iom_get( numror, 'ntime' , ktime , ldxios = lrxios)341 CALL iom_get( numror, 'adatrj', adatrj ) 342 CALL iom_get( numror, 'ntime', ktime ) 349 343 nn_time0=INT(ktime) 350 344 ! calculate start time in hours and minutes … … 405 399 ENDIF 406 400 ! calendar control 407 IF( lwxios ) CALL iom_swap( cwxios_context ) 408 CALL iom_rstput( kt, nitrst, numrow, 'kt' , REAL( kt , wp) , ldxios = lwxios ) ! time-step 409 CALL iom_rstput( kt, nitrst, numrow, 'ndastp' , REAL( ndastp, wp) , ldxios = lwxios ) ! date 410 CALL iom_rstput( kt, nitrst, numrow, 'adatrj' , adatrj , ldxios = lwxios ) ! number of elapsed days since 401 CALL iom_rstput( kt, nitrst, numrow, 'kt' , REAL( kt , wp) ) ! time-step 402 CALL iom_rstput( kt, nitrst, numrow, 'ndastp' , REAL( ndastp, wp) ) ! date 403 CALL iom_rstput( kt, nitrst, numrow, 'adatrj' , adatrj ) ! number of elapsed days since 411 404 ! ! the begining of the run [s] 412 CALL iom_rstput( kt, nitrst, numrow, 'ntime' , REAL( nn_time0, wp), ldxios = lwxios ) ! time 413 IF( lwxios ) CALL iom_swap( cxios_context ) 405 CALL iom_rstput( kt, nitrst, numrow, 'ntime' , REAL( nn_time0, wp) ) ! time 414 406 ENDIF 415 407 !
Note: See TracChangeset
for help on using the changeset viewer.