Changeset 6336
- Timestamp:
- 2016-02-19T14:53:05+01:00 (9 years ago)
- Location:
- branches/UKMO/restart_datestamp/NEMOGCM/NEMO/OPA_SRC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/restart_datestamp/NEMOGCM/NEMO/OPA_SRC/ICB/icbrst.F90
r5538 r6336 235 235 INTEGER :: iyear, imonth, iday 236 236 REAL (wp) :: zsec 237 REAL (wp) :: zfjulday 237 238 CHARACTER(len=256) :: cl_path 238 239 CHARACTER(len=256) :: cl_filename … … 246 247 IF( cl_path(LEN_TRIM(cl_path):) /= '/' ) cl_path = TRIM(cl_path) // '/' 247 248 IF ( ln_rstdate ) THEN 248 CALL ju2ymds( fjulday + rdttra(1) / rday, iyear, imonth, iday, zsec ) 249 zfjulday = fjulday + rdttra(1) / rday 250 IF( ABS(zfjulday - REAL(NINT(zfjulday),wp)) < 0.1 / rday ) zfjulday = REAL(NINT(zfjulday),wp) ! avoid truncation error 251 CALL ju2ymds( zfjulday, iyear, imonth, iday, zsec ) 249 252 WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday 250 253 ELSE -
branches/UKMO/restart_datestamp/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90
r6305 r6336 57 57 INTEGER :: iyear, imonth, iday 58 58 REAL (wp) :: zsec 59 REAL (wp) :: zfjulday 59 60 !! 60 61 CHARACTER(LEN=20) :: clkt ! ocean time-step deine as a character … … 85 86 IF( nitrst <= nitend .AND. nitrst > 0 ) THEN 86 87 IF ( ln_rstdate ) THEN 87 CALL ju2ymds( fjulday + ((kt-nit000)*rdttra(1)) / rday, iyear, imonth, iday, zsec ) 88 zfjulday = fjulday + rdttra(1) / rday 89 IF( ABS(zfjulday - REAL(NINT(zfjulday),wp)) < 0.1 / rday ) zfjulday = REAL(NINT(zfjulday),wp) ! avoid truncation error 90 CALL ju2ymds( zfjulday, iyear, imonth, iday, zsec ) 88 91 WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday 89 92 ELSE
Note: See TracChangeset
for help on using the changeset viewer.