Changeset 4775 for branches/2014/dev_r4650_UKMO11_restart_functionality/NEMOGCM/NEMO/LIM_SRC_3/limrst.F90
- Timestamp:
- 2014-09-18T19:06:14+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2014/dev_r4650_UKMO11_restart_functionality/NEMOGCM/NEMO/LIM_SRC_3/limrst.F90
r4688 r4775 55 55 CHARACTER(LEN=20) :: clkt ! ocean time-step define as a character 56 56 CHARACTER(LEN=50) :: clname ! ice output restart file name 57 CHARACTER(len=150) :: clpath ! full path to ice output restart file 57 58 !!---------------------------------------------------------------------- 58 59 ! … … 70 71 ! create the file 71 72 clname = TRIM(cexper)//"_"//TRIM(ADJUSTL(clkt))//"_"//TRIM(cn_icerst_out) 73 clpath = TRIM(cn_icerst_outdir) 74 IF( clpath(LEN_TRIM(clpath):) /= '/' ) clpath = TRIM(clpath)//'/' 72 75 IF(lwp) THEN 73 76 WRITE(numout,*) 74 77 SELECT CASE ( jprstlib ) 75 CASE ( jprstdimg ) ; WRITE(numout,*) ' open ice restart binary file: '//clname 76 CASE DEFAULT ; WRITE(numout,*) ' open ice restart NetCDF file: '//clname 78 CASE ( jprstdimg ) 79 WRITE(numout,*) ' open ice restart binary file: ',TRIM(clpath)//clname 80 CASE DEFAULT 81 WRITE(numout,*) ' open ice restart NetCDF file: ',TRIM(clpath)//clname 77 82 END SELECT 78 83 IF( kt == nitrst - 2*nn_fsbc + 1 ) THEN … … 82 87 ENDIF 83 88 ! 84 CALL iom_open( clname, numriw, ldwrt = .TRUE., kiolib = jprstlib )89 CALL iom_open( TRIM(clpath)//TRIM(clname), numriw, ldwrt = .TRUE., kiolib = jprstlib ) 85 90 lrst_ice = .TRUE. 86 91 ENDIF … … 142 147 CALL iom_rstput( iter, nitrst, numriw, znam , z2d ) 143 148 END DO 144 149 145 150 DO jl = 1, jpl 146 151 WRITE(zchar,'(I1)') jl … … 329 334 ! eventually read netcdf file (monobloc) for restarting on different number of processors 330 335 ! if {cn_icerst_in}.nc exists, then set jlibalt to jpnf90 331 INQUIRE( FILE = TRIM(cn_icerst_in )//'.nc', EXIST = llok )336 INQUIRE( FILE = TRIM(cn_icerst_indir)//'/'//TRIM(cn_icerst_in)//'.nc', EXIST = llok ) 332 337 IF ( llok ) THEN ; jlibalt = jpnf90 ; ELSE ; jlibalt = jprstlib ; ENDIF 333 338 ENDIF 334 339 335 CALL iom_open ( cn_icerst_in, numrir, kiolib = jprstlib )340 CALL iom_open ( TRIM(cn_icerst_indir)//'/'//cn_icerst_in, numrir, kiolib = jprstlib ) 336 341 337 342 CALL iom_get( numrir, 'nn_fsbc', zfice )
Note: See TracChangeset
for help on using the changeset viewer.