Changeset 5498 for branches/UKMO/dev_r5107_restart_func_and_date/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90
- Timestamp:
- 2015-06-26T17:13:57+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5107_restart_func_and_date/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90
r5339 r5498 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 … … 83 86 IF( nitrst <= nitend .AND. nitrst > 0 ) THEN 84 87 ! beware of the format used to write kt (default is i8.8, that should be large enough...) 85 IF( nitrst > 999999999 ) THEN ; WRITE(clkt, * ) nitrst 86 ELSE ; WRITE(clkt, '(i8.8)') nitrst 88 IF ( ln_rstdate ) THEN 89 CALL ju2ymds( fjulday + rdttra(1) / rday, iyear, imonth, iday, zsec ) 90 WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday 91 ELSE 92 IF( nitrst > 999999999 ) THEN ; WRITE(clkt, * ) nitrst 93 ELSE ; WRITE(clkt, '(i8.8)') nitrst 94 ENDIF 87 95 ENDIF 88 96 ! create the file
Note: See TracChangeset
for help on using the changeset viewer.