- Timestamp:
- 2016-09-19T16:36:50+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/CO6_KD490/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90
r6332 r6939 55 55 !!---------------------------------------------------------------------- 56 56 INTEGER, INTENT(in) :: kt ! ocean time-step 57 INTEGER :: iyear, imonth, iday 58 REAL (wp) :: zsec 57 INTEGER :: iyear, imonth, iday 58 REAL (wp) :: zsec 59 REAL (wp) :: zfjulday 59 60 !! 60 61 CHARACTER(LEN=20) :: clkt ! ocean time-step deine as a character … … 84 85 IF( kt == nitrst - 1 .OR. nstock == 1 .OR. ( kt == nitend .AND. .NOT. lrst_oce ) ) THEN 85 86 IF( nitrst <= nitend .AND. nitrst > 0 ) THEN 86 IF ( ln_rstdate ) THEN 87 CALL ju2ymds( fjulday + rdttra(1) / rday, iyear, imonth, iday, zsec ) 88 WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday 89 ELSE 90 ! beware of the format used to write kt (default is i8.8, that should be large enough...) 91 IF( nitrst > 999999999 ) THEN ; WRITE(clkt, * ) nitrst 92 ELSE ; WRITE(clkt, '(i8.8)') nitrst 93 ENDIF 87 IF ( ln_rstdate ) THEN 88 zfjulday = fjulday + rdttra(1) / rday 89 IF( ABS(zfjulday - REAL(NINT(zfjulday),wp)) < 0.1 / rday ) zfjulday = REAL(NINT(zfjulday),wp) ! avoid truncation error 90 CALL ju2ymds( zfjulday, iyear, imonth, iday, zsec ) 91 WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday 92 ELSE 93 ! beware of the format used to write kt (default is i8.8, that should be large enough...) 94 IF( nitrst > 999999999 ) THEN ; WRITE(clkt, * ) nitrst 95 ELSE ; WRITE(clkt, '(i8.8)') nitrst 96 ENDIF 94 97 ENDIF 95 98 ! create the file
Note: See TracChangeset
for help on using the changeset viewer.