- Timestamp:
- 2020-04-03T13:09:33+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/UKMO/NEMO_4.0.2_GO8_package/src/ICE/icerst.F90
r12658 r12660 23 23 USE in_out_manager ! I/O manager 24 24 USE iom ! I/O manager library 25 USE ioipsl, ONLY : ju2ymds ! for calendar 25 26 USE lib_mpp ! MPP library 26 27 USE lib_fortran ! fortran utilities (glob_sum + no signed zero) … … 48 49 INTEGER, INTENT(in) :: kt ! number of iteration 49 50 ! 51 INTEGER :: iyear, imonth, iday 52 REAL (wp) :: zsec 53 REAL (wp) :: zfjulday 50 54 CHARACTER(len=20) :: clkt ! ocean time-step define as a character 51 55 CHARACTER(len=50) :: clname ! ice output restart file name … … 63 67 IF( nitrst <= nitend .AND. nitrst > 0 ) THEN 64 68 ! beware of the format used to write kt (default is i8.8, that should be large enough...) 65 IF( nitrst > 99999999 ) THEN ; WRITE(clkt, * ) nitrst 66 ELSE ; WRITE(clkt, '(i8.8)') nitrst 69 IF ( ln_rstdate ) THEN 70 zfjulday = fjulday + (2*nn_fsbc+1)*rdt / rday 71 IF( ABS(zfjulday - REAL(NINT(zfjulday),wp)) < 0.1 / rday ) zfjulday = REAL(NINT(zfjulday),wp) ! avoid truncation error 72 CALL ju2ymds( zfjulday, iyear, imonth, iday, zsec ) 73 WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday 74 ELSE 75 IF( nitrst > 99999999 ) THEN ; WRITE(clkt, * ) nitrst 76 ELSE ; WRITE(clkt, '(i8.8)') nitrst 77 ENDIF 67 78 ENDIF 68 79 ! create the file
Note: See TracChangeset
for help on using the changeset viewer.