- Timestamp:
- 2015-09-16T11:40:14+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/2014_Surge_Modelling/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90
r5746 r5750 59 59 !! 60 60 CHARACTER(LEN=20) :: clkt ! ocean time-step deine as a character 61 CHARACTER(LEN=50) :: clname ! ice output restart file name 61 CHARACTER(LEN=50) :: clname ! ocean output restart file name 62 CHARACTER(len=150) :: clpath ! full path to ocean output restart file 62 63 ! Included for ln_rstdate 63 64 INTEGER :: iyear, imonth, iday … … 95 96 ! create the file 96 97 clname = TRIM(cexper)//"_"//TRIM(ADJUSTL(clkt))//"_"//TRIM(cn_ocerst_out) 98 clpath = TRIM(cn_ocerst_outdir) 99 IF( clpath(LEN_TRIM(clpath):) /= '/' ) clpath = TRIM(clpath) // '/' 100 ! 97 101 IF(lwp) THEN 98 102 WRITE(numout,*) … … 107 111 ENDIF 108 112 ! 109 CALL iom_open( clname, numrow, ldwrt = .TRUE., kiolib = jprstlib )113 CALL iom_open( TRIM(clpath)//TRIM(clname), numrow, ldwrt = .TRUE., kiolib = jprstlib ) 110 114 lrst_oce = .TRUE. 111 115 ENDIF … … 170 174 INTEGER :: jlibalt = jprstlib 171 175 LOGICAL :: llok 176 CHARACTER(lc) :: clpath ! full path to ocean output restart file 172 177 !!---------------------------------------------------------------------- 173 178 … … 183 188 ENDIF 184 189 190 clpath = TRIM(cn_ocerst_indir) 191 IF( clpath(LEN_TRIM(clpath):) /= '/' ) clpath = TRIM(clpath) // '/' 185 192 IF ( jprstlib == jprstdimg ) THEN 186 193 ! eventually read netcdf file (monobloc) for restarting on different number of processors 187 194 ! if {cn_ocerst_in}.nc exists, then set jlibalt to jpnf90 188 INQUIRE( FILE = TRIM(cn_ocerst_in )//'.nc', EXIST = llok )195 INQUIRE( FILE = TRIM(cn_ocerst_indir)//'/'//TRIM(cn_ocerst_in)//'.nc', EXIST = llok ) 189 196 IF ( llok ) THEN ; jlibalt = jpnf90 ; ELSE ; jlibalt = jprstlib ; ENDIF 190 197 ENDIF 191 CALL iom_open( cn_ocerst_in, numror, kiolib = jlibalt )198 CALL iom_open( TRIM(clpath)//cn_ocerst_in, numror, kiolib = jlibalt ) 192 199 ENDIF 193 200 END SUBROUTINE rst_read_open
Note: See TracChangeset
for help on using the changeset viewer.