- Timestamp:
- 2012-01-04T11:31:09+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/TOP_SRC/trcrst.F90
r3160 r3244 39 39 PUBLIC trc_rst_read ! called by ??? 40 40 PUBLIC trc_rst_wri ! called by ??? 41 PUBLIC trc_rst_cal 41 42 42 43 INTEGER, PUBLIC :: numrtr, numrtw !: logical unit for trc restart (read and write) … … 99 100 !!---------------------------------------------------------------------- 100 101 INTEGER :: jn 101 INTEGER :: jlibalt = jprstlib102 LOGICAL :: llok103 102 104 103 !!---------------------------------------------------------------------- 105 104 ! 106 105 IF(lwp) WRITE(numout,*) 107 IF(lwp) WRITE(numout,*) 'trc_rst_read : read the TOP restart file'106 IF(lwp) WRITE(numout,*) 'trc_rst_read : read data in the TOP restart file' 108 107 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~' 109 110 IF ( jprstlib == jprstdimg ) THEN111 ! eventually read netcdf file (monobloc) for restarting on different number of processors112 ! if {cn_trcrst_in}.nc exists, then set jlibalt to jpnf90113 INQUIRE( FILE = TRIM(cn_trcrst_in)//'.nc', EXIST = llok )114 IF ( llok ) THEN ; jlibalt = jpnf90 ; ELSE ; jlibalt = jprstlib ; ENDIF115 ENDIF116 117 CALL iom_open( cn_trcrst_in, numrtr, kiolib = jlibalt )118 119 ! Time domain : restart120 ! ---------------------121 CALL trc_rst_cal( nittrc000, 'READ' ) ! calendar122 108 123 109 ! READ prognostic variables and computes diagnostic variable … … 209 195 CHARACTER(len=*), INTENT(in) :: cdrw ! "READ"/"WRITE" flag 210 196 ! 197 INTEGER :: jlibalt = jprstlib 198 LOGICAL :: llok 211 199 REAL(wp) :: zkt, zrdttrc1 212 200 REAL(wp) :: zndastp … … 216 204 217 205 IF( TRIM(cdrw) == 'READ' ) THEN 206 207 IF(lwp) WRITE(numout,*) 208 IF(lwp) WRITE(numout,*) 'trc_rst_cal : read the TOP restart file for calendar' 209 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~' 210 211 IF ( jprstlib == jprstdimg ) THEN 212 ! eventually read netcdf file (monobloc) for restarting on different number of processors 213 ! if {cn_trcrst_in}.nc exists, then set jlibalt to jpnf90 214 INQUIRE( FILE = TRIM(cn_trcrst_in)//'.nc', EXIST = llok ) 215 IF ( llok ) THEN ; jlibalt = jpnf90 ; ELSE ; jlibalt = jprstlib ; ENDIF 216 ENDIF 217 218 CALL iom_open( cn_trcrst_in, numrtr, kiolib = jlibalt ) 219 218 220 CALL iom_get ( numrtr, 'kt', zkt ) ! last time-step of previous run 219 221 IF(lwp) THEN
Note: See TracChangeset
for help on using the changeset viewer.