- Timestamp:
- 2016-11-07T17:59:36+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_GO6_package/NEMOGCM/NEMO/TOP_SRC/trcrst.F90
r7179 r7203 27 27 USE trcnam_trp 28 28 USE iom 29 USE in_out_manager , ONLY : ln_rstdate30 29 USE daymod 31 30 IMPLICIT NONE … … 49 48 !!---------------------------------------------------------------------- 50 49 INTEGER, INTENT(in) :: kt ! number of iteration 51 INTEGER :: iyear, imonth, iday52 REAL (wp) :: zsec53 50 ! 54 51 CHARACTER(LEN=20) :: clkt ! ocean time-step define as a character … … 81 78 ! except if we write tracer restart files every tracer time step or if a tracer restart file was writen at nitend - 2*nn_dttrc + 1 82 79 IF( kt == nitrst - 2*nn_dttrc .OR. nstock == nn_dttrc .OR. ( kt == nitend - nn_dttrc .AND. .NOT. lrst_trc ) ) THEN 83 IF ( ln_rstdate ) THEN 84 CALL ju2ymds( fjulday + rdttra(1) / rday, iyear, imonth, iday, zsec ) 85 WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday 86 ELSE 87 ! beware of the format used to write kt (default is i8.8, that should be large enough...) 88 IF( nitrst > 999999999 ) THEN ; WRITE(clkt, * ) nitrst 89 ELSE ; WRITE(clkt, '(i8.8)') nitrst 90 ENDIF 80 ! beware of the format used to write kt (default is i8.8, that should be large enough) 81 IF( nitrst > 1.0e9 ) THEN ; WRITE(clkt,* ) nitrst 82 ELSE ; WRITE(clkt,'(i8.8)') nitrst 91 83 ENDIF 92 84 ! create the file
Note: See TracChangeset
for help on using the changeset viewer.