Changeset 6144 for branches/NERC
- Timestamp:
- 2015-12-21T13:21:24+01:00 (9 years ago)
- Location:
- branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90
r5733 r6144 54 54 !!---------------------------------------------------------------------- 55 55 INTEGER, INTENT(in) :: kt ! ocean time-step 56 INTEGER :: iyear, imonth, iday 57 REAL (wp) :: zsec 56 58 !! 57 59 CHARACTER(LEN=20) :: clkt ! ocean time-step deine as a character 58 60 CHARACTER(LEN=50) :: clname ! ocean output restart file name 59 CHARACTER( lc):: clpath ! full path to ocean output restart file61 CHARACTER(LEN=150) :: clpath ! full path to ocean output restart file 60 62 !!---------------------------------------------------------------------- 61 63 ! 62 64 IF( kt == nit000 ) THEN ! default definitions 63 lrst_oce = .FALSE. 65 lrst_oce = .FALSE. 64 66 IF( ln_rst_list ) THEN 65 67 nrst_lst = 1 … … 71 73 72 74 ! frequency-based restart dumping (nn_stock) 73 IF( .NOT. ln_rst_list .AND. MOD( kt - 1, nstock ) == 0 ) THEN 75 IF( .NOT. ln_rst_list .AND. MOD( kt - 1, nstock ) == 0 ) THEN 74 76 ! we use kt - 1 and not kt - nit000 to keep the same periodicity from the beginning of the experiment 75 77 nitrst = kt + nstock - 1 ! define the next value of nitrst for restart writing … … 80 82 ! except if we write ocean restart files every time step or if an ocean restart file was writen at nitend - 1 81 83 IF( kt == nitrst - 1 .OR. nstock == 1 .OR. ( kt == nitend .AND. .NOT. lrst_oce ) ) THEN 82 IF( nitrst <= nitend .AND. nitrst > 0 ) THEN 83 ! beware of the format used to write kt (default is i8.8, that should be large enough...) 84 IF( nitrst > 999999999 ) THEN ; WRITE(clkt, * ) nitrst 85 ELSE ; WRITE(clkt, '(i8.8)') nitrst 84 IF( nitrst <= nitend .AND. nitrst > 0 ) THEN 85 IF ( ln_rstdate ) THEN 86 WRITE(numout,*) 'JPALM - oce restart kt = ',kt,'==', nitrst - 1 87 WRITE(numout,*) 'JPALM - oce restart nstock = ',nstock,'== 1 ' 88 WRITE(numout,*) 'JPALM - oce restart kt = ',kt,'==',nitend 89 WRITE(numout,*) 'JPALM - oce restart nitrst = ',nitrst,'<=',nitend,' and > 0' 90 WRITE(numout,*) '-----------------------------' 91 92 CALL ju2ymds( fjulday + rdttra(1) / rday, iyear, imonth, iday, zsec ) 93 WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday 94 ELSE 95 ! beware of the format used to write kt (default is i8.8, that should be large enough...) 96 IF( nitrst > 999999999 ) THEN ; WRITE(clkt, * ) nitrst 97 ELSE ; WRITE(clkt, '(i8.8)') nitrst 98 ENDIF 86 99 ENDIF 87 100 ! create the file -
branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM/NEMO/TOP_SRC/trcrst.F90
r6109 r6144 86 86 IF( kt == nitrst - 2*nn_dttrc .OR. nstock == nn_dttrc .OR. ( kt == nitend - nn_dttrc .AND. .NOT. lrst_trc ) ) THEN 87 87 IF ( ln_rstdate ) THEN 88 WRITE(numout,*) 'JPALM - trc restart kt = ',kt,'==', nitrst - 2*nn_dttrc 89 WRITE(numout,*) 'JPALM - trc restart nstock = ',nstock,'==',nn_dttrc 90 WRITE(numout,*) 'JPALM - trc restart kt = ',kt,'==',nitend - nn_dttrc 91 WRITE(numout,*) '-----------------------------' 88 92 CALL ju2ymds( fjulday + rdttra(1) / rday, iyear, imonth, iday, zsec ) 89 93 WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday
Note: See TracChangeset
for help on using the changeset viewer.