Changeset 1473 for trunk/NEMO
- Timestamp:
- 2009-06-12T16:07:47+02:00 (16 years ago)
- Location:
- trunk/NEMO
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/LIM_SRC_2/limrst_2.F90
r1471 r1473 170 170 !!---------------------------------------------------------------------- 171 171 REAL(wp) :: ziter 172 INTEGER :: jlibalt = jprstlib 173 LOGICAL :: llok 172 174 INTEGER :: itest 173 175 !!---------------------------------------------------------------------- … … 179 181 ENDIF 180 182 181 CALL iom_open ( cn_icerst_in, numrir, kiolib = jprstlib ) 183 IF ( jprstlib == jprstdimg ) THEN 184 ! eventually read netcdf file (monobloc) for restarting on different number of processors 185 ! if {cn_icerst_in}.nc exists, then set jlibalt to jpnf90 186 INQUIRE( FILE = TRIM(cn_icerst_in)//'.nc', EXIST = llok ) 187 IF ( llok ) THEN ; jlibalt = jpnf90 ; ELSE ; jlibalt = jprstlib ; ENDIF 188 ENDIF 189 190 CALL iom_open ( cn_icerst_in, numrir, kiolib = jlibalt ) 182 191 183 192 CALL iom_get( numrir, 'kt_ice' , ziter ) -
trunk/NEMO/LIM_SRC_3/limrst.F90
r1471 r1473 391 391 REAL(wp), DIMENSION(jpi,jpj) :: z2d 392 392 CHARACTER(len=15) :: znam 393 CHARACTER(len=1) :: zchar, zchar1 393 CHARACTER(len=1) :: zchar, zchar1 394 INTEGER :: jlibalt = jprstlib 395 LOGICAL :: llok 394 396 !!---------------------------------------------------------------------- 395 397 … … 398 400 WRITE(numout,*) 'lim_rst_read : read ice NetCDF restart file' 399 401 WRITE(numout,*) '~~~~~~~~~~~~~~' 402 ENDIF 403 404 IF ( jprstlib == jprstdimg ) THEN 405 ! eventually read netcdf file (monobloc) for restarting on different number of processors 406 ! if {cn_icerst_in}.nc exists, then set jlibalt to jpnf90 407 INQUIRE( FILE = TRIM(cn_icerst_in)//'.nc', EXIST = llok ) 408 IF ( llok ) THEN ; jlibalt = jpnf90 ; ELSE ; jlibalt = jprstlib ; ENDIF 400 409 ENDIF 401 410 -
trunk/NEMO/OPA_SRC/TRD/trdmld_rst.F90
r1229 r1473 131 131 CHARACTER (len=35) :: charout 132 132 INTEGER :: jk ! loop indice 133 INTEGER :: jlibalt = jprstlib 134 LOGICAL :: llok 133 135 !!----------------------------------------------------------------------------- 134 136 … … 138 140 WRITE(numout,*) ' ~~~~~~~~~~~~~~~~' 139 141 ENDIF 140 141 CALL iom_open( cn_trdrst_in, inum, kiolib = jprstlib ) 142 IF ( jprstlib == jprstdimg ) THEN 143 ! eventually read netcdf file (monobloc) for restarting on different number of processors 144 ! if {cn_trdrst_in}.nc exists, then set jlibalt to jpnf90 145 INQUIRE( FILE = TRIM(cn_trdrst_in)//'.nc', EXIST = llok ) 146 IF ( llok ) THEN ; jlibalt = jpnf90 ; ELSE ; jlibalt = jprstlib ; ENDIF 147 ENDIF 148 149 CALL iom_open( cn_trdrst_in, inum, kiolib = jlibalt ) 142 150 143 151 IF( ln_trdmld_instant ) THEN -
trunk/NEMO/OPA_SRC/restart.F90
r1438 r1473 193 193 !!---------------------------------------------------------------------- 194 194 REAL(wp) :: zrdt, zrdttra1 195 INTEGER :: jlibalt = jprstlib 196 LOGICAL :: llok 195 197 !!---------------------------------------------------------------------- 196 198 … … 204 206 ENDIF 205 207 206 CALL iom_open( cn_ocerst_in, numror, kiolib = jprstlib ) 208 IF ( jprstlib == jprstdimg ) THEN 209 ! eventually read netcdf file (monobloc) for restarting on different number of processors 210 ! if {cn_ocerst_in}.nc exists, then set jlibalt to jpnf90 211 INQUIRE( FILE = TRIM(cn_ocerst_in)//'.nc', EXIST = llok ) 212 IF ( llok ) THEN ; jlibalt = jpnf90 ; ELSE ; jlibalt = jprstlib ; ENDIF 213 ENDIF 214 CALL iom_open( cn_ocerst_in, numror, kiolib = jlibalt ) 207 215 208 216 ! Check dynamics and tracer time-step consistency and force Euler restart if changed -
trunk/NEMO/TOP_SRC/SED/sedrst.F90
r1310 r1473 55 55 56 56 REAL(wp) :: zkt 57 CHARACTER(len = 20) :: cltra 57 CHARACTER(len = 20) :: cltra 58 INTEGER :: jlibalt = jprstlib 59 LOGICAL :: llok 58 60 !-------------------------------------------------------------------- 59 61 … … 65 67 ALLOCATE( zhipor(jpoce,jpksed) ) 66 68 67 CALL iom_open( 'restart_sed', numrsr, kiolib = jprstlib ) 69 IF ( jprstlib == jprstdimg ) THEN 70 ! eventually read netcdf file (monobloc) for restarting on different number of processors 71 ! if restart_sed.nc exists, then set jlibalt to jpnf90 72 INQUIRE( FILE = 'restart_sed.nc', EXIST = llok ) 73 IF ( llok ) THEN ; jlibalt = jpnf90 ; ELSE ; jlibalt = jprstlib ; ENDIF 74 ENDIF 75 76 CALL iom_open( 'restart_sed', numrsr, kiolib = jlibalt ) 68 77 CALL iom_get( numrsr, 'kt' , zkt ) ! time-step 69 78 -
trunk/NEMO/TOP_SRC/TRP/trdmld_trc_rst.F90
r1283 r1473 132 132 CHARACTER (len=35) :: charout 133 133 INTEGER :: jk, jn, jl ! loop indice 134 INTEGER :: jlibalt = jprstlib 135 LOGICAL :: llok 134 136 !!----------------------------------------------------------------------------- 135 137 … … 140 142 ENDIF 141 143 142 CALL iom_open( cn_trdrst_trc_in, inum, kiolib = jprstlib ) 144 IF ( jprstlib == jprstdimg ) THEN 145 ! eventually read netcdf file (monobloc) for restarting on different number of processors 146 ! if {cn_trdrst_trc_in}.nc exists, then set jlibalt to jpnf90 147 INQUIRE( FILE = TRIM(cn_trdrst_trc_in)//'.nc', EXIST = llok ) 148 IF ( llok ) THEN ; jlibalt = jpnf90 ; ELSE ; jlibalt = jprstlib ; ENDIF 149 ENDIF 150 151 CALL iom_open( cn_trdrst_trc_in, inum, kiolib = jlibalt ) 143 152 144 153 IF( ln_trdmld_trc_instant ) THEN -
trunk/NEMO/TOP_SRC/trcrst.F90
r1457 r1473 92 92 INTEGER :: iarak0 93 93 REAL(wp) :: zarak0 94 INTEGER :: jlibalt = jprstlib 95 LOGICAL :: llok 94 96 #if defined key_pisces 95 97 INTEGER :: ji, jj, jk … … 104 106 IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~' 105 107 106 CALL iom_open( cn_trcrst_in, numrtr, kiolib = jprstlib ) 108 IF ( jprstlib == jprstdimg ) THEN 109 ! eventually read netcdf file (monobloc) for restarting on different number of processors 110 ! if {cn_trcrst_in}.nc exists, then set jlibalt to jpnf90 111 INQUIRE( FILE = TRIM(cn_trcrst_in)//'.nc', EXIST = llok ) 112 IF ( llok ) THEN ; jlibalt = jpnf90 ; ELSE ; jlibalt = jprstlib ; ENDIF 113 ENDIF 114 115 CALL iom_open( cn_trcrst_in, numrtr, kiolib = jlibalt ) 107 116 108 117 ! Time domain : restart
Note: See TracChangeset
for help on using the changeset viewer.