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