- Timestamp:
- 2018-03-09T14:41:46+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r8864_restart_date/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90
r9235 r9390 27 27 USE in_out_manager ! I/O manager 28 28 USE iom ! I/O module 29 USE ioipsl, ONLY : ju2ymds ! for calendar 29 30 USE diurnal_bulk 30 31 … … 58 59 INTEGER, INTENT(in) :: kt ! ocean time-step 59 60 !! 61 INTEGER :: iyear, imonth, iday 62 REAL (wp) :: zsec 63 REAL (wp) :: zfjulday 60 64 CHARACTER(LEN=20) :: clkt ! ocean time-step deine as a character 61 65 CHARACTER(LEN=50) :: clname ! ocean output restart file name … … 85 89 IF( nitrst <= nitend .AND. nitrst > 0 ) THEN 86 90 ! beware of the format used to write kt (default is i8.8, that should be large enough...) 87 IF( nitrst > 999999999 ) THEN ; WRITE(clkt, * ) nitrst 88 ELSE ; WRITE(clkt, '(i8.8)') nitrst 91 IF ( ln_rstdate ) THEN 92 zfjulday = fjulday + rdttra(1) / rday 93 IF( ABS(zfjulday - REAL(NINT(zfjulday),wp)) < 0.1 / rday ) zfjulday = REAL(NINT(zfjulday),wp) ! avoid truncation error 94 CALL ju2ymds( zfjulday, iyear, imonth, iday, zsec ) 95 WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday 96 ELSE 97 IF( nitrst > 999999999 ) THEN ; WRITE(clkt, * ) nitrst 98 ELSE ; WRITE(clkt, '(i8.8)') nitrst 99 ENDIF 89 100 ENDIF 90 101 ! create the file
Note: See TracChangeset
for help on using the changeset viewer.