Changeset 5494 for branches/UKMO
- Timestamp:
- 2015-06-26T12:30:56+02:00 (9 years ago)
- Location:
- branches/UKMO/dev_r5107_restart_date/NEMOGCM/NEMO/OPA_SRC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5107_restart_date/NEMOGCM/NEMO/OPA_SRC/DOM/domain.F90
r5493 r5494 137 137 NAMELIST/namrun/ nn_no , cn_exp , cn_ocerst_in, cn_ocerst_out, ln_rstart , nn_rstctl, & 138 138 & nn_it000, nn_itend , nn_date0 , nn_leapy , nn_istate , nn_stock , & 139 & nn_write, ln_dimgnnn, ln_mskland , ln_clobber , nn_chunksz, nn_euler 139 & nn_write, ln_dimgnnn, ln_mskland , ln_clobber , nn_chunksz, nn_euler , & 140 & ln_rstdate 140 141 NAMELIST/namdom/ nn_bathy, rn_bathy , rn_e3zps_min, rn_e3zps_rat, nn_msh, rn_hmin, & 141 142 & nn_acc , rn_atfp , rn_rdt , rn_rdtmin , & … … 179 180 WRITE(numout,*) ' initial state output nn_istate = ', nn_istate 180 181 WRITE(numout,*) ' frequency of restart file nn_stock = ', nn_stock 182 WRITE(numout,*) ' use date in restart name ln_rstdate = ', ln_rstdate 181 183 WRITE(numout,*) ' frequency of output file nn_write = ', nn_write 182 184 WRITE(numout,*) ' multi file dimgout ln_dimgnnn = ', ln_dimgnnn -
branches/UKMO/dev_r5107_restart_date/NEMOGCM/NEMO/OPA_SRC/IOM/in_out_manager.F90
r5493 r5494 38 38 INTEGER :: nn_write !: model standard output frequency 39 39 INTEGER :: nn_stock !: restart file frequency 40 LOGICAL :: ln_rstdate = .FALSE. !: Use calendar date rather than time-step in restart names 40 41 LOGICAL :: ln_dimgnnn !: type of dimgout. (F): 1 file for all proc 41 42 !: (T): 1 file per proc -
branches/UKMO/dev_r5107_restart_date/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90
r5493 r5494 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 … … 74 77 IF( kt == nitrst - 1 .OR. nstock == 1 .OR. ( kt == nitend .AND. .NOT. lrst_oce ) ) THEN 75 78 ! beware of the format used to write kt (default is i8.8, that should be large enough...) 76 IF( nitrst > 999999999 ) THEN ; WRITE(clkt, * ) nitrst 77 ELSE ; WRITE(clkt, '(i8.8)') nitrst 79 IF ( ln_rstdate ) THEN 80 CALL ju2ymds( fjulday + rdttra(1) / rday, iyear, imonth, iday, zsec ) 81 WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday 82 ELSE 83 IF( nitrst > 999999999 ) THEN ; WRITE(clkt, * ) nitrst 84 ELSE ; WRITE(clkt, '(i8.8)') nitrst 85 ENDIF 78 86 ENDIF 79 87 ! create the file
Note: See TracChangeset
for help on using the changeset viewer.