- Timestamp:
- 2015-06-26T12:30:56+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5107_restart_date/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90
r5493 r5494 21 21 USE in_out_manager ! I/O manager 22 22 USE iom ! I/O module 23 USE ioipsl, ONLY : ju2ymds ! for calendar 23 24 USE eosbn2 ! equation of state (eos bn2 routine) 24 25 USE trdmxl_oce ! ocean active mixed layer tracers trends variables … … 55 56 !!---------------------------------------------------------------------- 56 57 INTEGER, INTENT(in) :: kt ! ocean time-step 58 INTEGER :: iyear, imonth, iday 59 REAL (wp) :: zsec 57 60 !! 58 61 CHARACTER(LEN=20) :: clkt ! ocean time-step deine as a character … … 74 77 IF( kt == nitrst - 1 .OR. nstock == 1 .OR. ( kt == nitend .AND. .NOT. lrst_oce ) ) THEN 75 78 ! beware of the format used to write kt (default is i8.8, that should be large enough...) 76 IF( nitrst > 999999999 ) THEN ; WRITE(clkt, * ) nitrst 77 ELSE ; WRITE(clkt, '(i8.8)') nitrst 79 IF ( ln_rstdate ) THEN 80 CALL ju2ymds( fjulday + rdttra(1) / rday, iyear, imonth, iday, zsec ) 81 WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday 82 ELSE 83 IF( nitrst > 999999999 ) THEN ; WRITE(clkt, * ) nitrst 84 ELSE ; WRITE(clkt, '(i8.8)') nitrst 85 ENDIF 78 86 ENDIF 79 87 ! create the file
Note: See TracChangeset
for help on using the changeset viewer.