Changeset 5525
- Timestamp:
- 2015-07-01T12:25:53+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5107_restart_func_and_date/NEMOGCM/NEMO/OPA_SRC/ICB/icbrst.F90
r5500 r5525 24 24 USE icb_oce ! define iceberg arrays 25 25 USE icbutl ! iceberg utility routines 26 USE ioipsl, ONLY : ju2ymds ! convert julian to years,months,days 27 USE phycst, ONLY : rday ! number of seconds in a day 26 28 27 29 IMPLICIT NONE … … 231 233 INTEGER :: jn ! dummy loop index 232 234 INTEGER :: ix_dim, iy_dim, ik_dim, in_dim 235 INTEGER :: iyear, imonth, iday 236 REAL (wp) :: zsec 233 237 CHARACTER(len=256) :: cl_path 234 238 CHARACTER(len=256) :: cl_filename 239 CHARACTER(LEN=20) :: clkt ! ocean time-step defined as a character 235 240 TYPE(iceberg), POINTER :: this 236 241 TYPE(point) , POINTER :: pt 237 242 !!---------------------------------------------------------------------- 243 244 ! Date or timestep in the filename 245 IF ( ln_rstdate ) THEN 246 CALL ju2ymds( fjulday + rdttra(1) / rday, iyear, imonth, iday, zsec ) 247 WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday 248 ELSE 249 IF( nitrst > 999999999 ) THEN ; WRITE(clkt, * ) kt 250 ELSE ; WRITE(clkt, '(i8.8)') kt 251 ENDIF 252 ENDIF 238 253 239 254 ! Assume we write iceberg restarts to same directory as ocean restarts. … … 241 256 IF( cl_path(LEN_TRIM(cl_path):) /= '/' ) cl_path = TRIM(cl_path) // '/' 242 257 IF( lk_mpp ) THEN 243 WRITE(cl_filename,'(A,"_icebergs_", I8.8,"_restart_",I4.4,".nc")') TRIM(cexper), kt, narea-1258 WRITE(cl_filename,'(A,"_icebergs_",A,"_restart_",I4.4,".nc")') TRIM(cexper), TRIM(ADJUSTL(clkt)), narea-1 244 259 ELSE 245 WRITE(cl_filename,'(A,"_icebergs_", I8.8,"_restart.nc")') TRIM(cexper), kt260 WRITE(cl_filename,'(A,"_icebergs_",A,"_restart.nc")') TRIM(cexper), TRIM(ADJUSTL(clkt)) 246 261 ENDIF 247 262 IF (nn_verbose_level >= 0) WRITE(numout,'(2a)') 'icebergs, write_restart: creating ',TRIM(cl_path)//TRIM(cl_filename)
Note: See TracChangeset
for help on using the changeset viewer.