- Timestamp:
- 2014-09-18T19:06:14+02:00 (10 years ago)
- Location:
- branches/2014/dev_r4650_UKMO11_restart_functionality/NEMOGCM/NEMO/LIM_SRC_2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2014/dev_r4650_UKMO11_restart_functionality/NEMOGCM/NEMO/LIM_SRC_2/ice_2.F90
r4306 r4775 24 24 ! !!* namicerun read in iceini * 25 25 CHARACTER(len=32) , PUBLIC :: cn_icerst_in !: suffix of ice restart name (input) 26 CHARACTER(len=200) , PUBLIC :: cn_icerst_indir !: ice restart in directory 26 27 CHARACTER(len=32) , PUBLIC :: cn_icerst_out !: suffix of ice restart name (output) 28 CHARACTER(len=200) , PUBLIC :: cn_icerst_outdir !: ice restart out directory 27 29 LOGICAL , PUBLIC :: ln_limdyn !: flag for ice dynamics (T) or not (F) 28 30 LOGICAL , PUBLIC :: ln_limdmp !: Ice damping -
branches/2014/dev_r4650_UKMO11_restart_functionality/NEMOGCM/NEMO/LIM_SRC_2/iceini_2.F90
r4624 r4775 123 123 !! ** input : Namelist namicerun 124 124 !!------------------------------------------------------------------- 125 NAMELIST/namicerun/ cn_icerst_in, cn_icerst_out, ln_limdyn, ln_limdmp, acrit, hsndif, hicdif 125 NAMELIST/namicerun/ cn_icerst_in, cn_icerst_indir, cn_icerst_out, cn_icerst_outdir, & 126 ln_limdyn, ln_limdmp, acrit, hsndif, hicdif 126 127 INTEGER :: ios ! Local integer output status for namelist read 127 128 !!------------------------------------------------------------------- -
branches/2014/dev_r4650_UKMO11_restart_functionality/NEMOGCM/NEMO/LIM_SRC_2/limrst_2.F90
r2528 r4775 50 50 CHARACTER(LEN=20) :: clkt ! ocean time-step deine as a character 51 51 CHARACTER(LEN=50) :: clname ! ice output restart file name 52 CHARACTER(len=150) :: clpath ! full path to ice output restart file 52 53 !!---------------------------------------------------------------------- 53 54 ! … … 64 65 ! create the file 65 66 clname = TRIM(cexper)//"_"//TRIM(ADJUSTL(clkt))//"_"//TRIM(cn_icerst_out) 67 clpath = TRIM(cn_icerst_outdir) 68 IF( clpath(LEN_TRIM(clpath):) /= '/' ) clpath = TRIM(clpath)//'/' 66 69 IF(lwp) THEN 67 70 WRITE(numout,*) 68 71 SELECT CASE ( jprstlib ) 69 CASE ( jprstdimg ) ; WRITE(numout,*) ' open ice restart binary file: '//clname 70 CASE DEFAULT ; WRITE(numout,*) ' open ice restart NetCDF file: '//clname 72 CASE ( jprstdimg ) 73 WRITE(numout,*) ' open ice restart binary file: ',TRIM(clpath)//clname 74 CASE DEFAULT 75 WRITE(numout,*) ' open ice restart NetCDF file: ',TRIM(clpath)//clname 71 76 END SELECT 72 77 IF( kt == nitrst - 2*nn_fsbc + 1 ) THEN … … 76 81 ENDIF 77 82 78 CALL iom_open( clname, numriw, ldwrt = .TRUE., kiolib = jprstlib )83 CALL iom_open( TRIM(clpath)//TRIM(clname), numriw, ldwrt = .TRUE., kiolib = jprstlib ) 79 84 lrst_ice = .TRUE. 80 85 ENDIF … … 188 193 ! eventually read netcdf file (monobloc) for restarting on different number of processors 189 194 ! if {cn_icerst_in}.nc exists, then set jlibalt to jpnf90 190 INQUIRE( FILE = TRIM(cn_icerst_in )//'.nc', EXIST = llok )195 INQUIRE( FILE = TRIM(cn_icerst_indir)//'/'//TRIM(cn_icerst_in)//'.nc', EXIST = llok ) 191 196 IF ( llok ) THEN ; jlibalt = jpnf90 ; ELSE ; jlibalt = jprstlib ; ENDIF 192 197 ENDIF 193 198 194 CALL iom_open ( cn_icerst_in, numrir, kiolib = jlibalt )199 CALL iom_open ( TRIM(cn_icerst_indir)//'/'//TRIM(cn_icerst_in), numrir, kiolib = jlibalt ) 195 200 196 201 CALL iom_get( numrir, 'kt_ice' , ziter )
Note: See TracChangeset
for help on using the changeset viewer.