Changeset 5337 for branches/2014/dev_r4650_UKMO11_restart_functionality/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90
- Timestamp:
- 2015-06-03T14:03:57+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2014/dev_r4650_UKMO11_restart_functionality/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90
r5312 r5337 58 58 CHARACTER(LEN=20) :: clkt ! ocean time-step deine as a character 59 59 CHARACTER(LEN=50) :: clname ! ocean output restart file name 60 CHARACTER(l en=150):: clpath ! full path to ocean output restart file60 CHARACTER(lc) :: clpath ! full path to ocean output restart file 61 61 !!---------------------------------------------------------------------- 62 62 ! … … 157 157 lrst_oce = .FALSE. 158 158 IF( ln_rst_list ) THEN 159 nrst_lst = nrst_lst + 1159 nrst_lst = min(nrst_lst + 1,10) 160 160 nitrst = nstocklist( nrst_lst ) 161 161 ENDIF … … 175 175 !! the file has already been opened 176 176 !!---------------------------------------------------------------------- 177 INTEGER :: jlibalt = jprstlib 178 LOGICAL :: llok 177 INTEGER :: jlibalt = jprstlib 178 LOGICAL :: llok 179 CHARACTER(lc) :: clpath ! full path to ocean output restart file 179 180 !!---------------------------------------------------------------------- 180 181 ! … … 196 197 IF ( llok ) THEN ; jlibalt = jpnf90 ; ELSE ; jlibalt = jprstlib ; ENDIF 197 198 ENDIF 198 CALL iom_open( TRIM(cn_ocerst_indir)//'/'//cn_ocerst_in, numror, kiolib = jlibalt ) 199 clpath = TRIM(cn_ocerst_outdir) 200 IF( clpath(LEN_TRIM(clpath):) /= '/' ) clpath = TRIM(clpath) // '/' 201 CALL iom_open( TRIM(clpath)//cn_ocerst_in, numror, kiolib = jlibalt ) 199 202 ENDIF 200 203 END SUBROUTINE rst_read_open
Note: See TracChangeset
for help on using the changeset viewer.