Changeset 320 for LMDZ.3.3/branches/rel-LF/libf/dyn3d/etat0_netcdf.F
- Timestamp:
- Jan 25, 2002, 5:20:10 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ.3.3/branches/rel-LF/libf/dyn3d/etat0_netcdf.F
r278 r320 1 SUBROUTINE etat0_netcdf 1 c 2 c $Header$ 3 c 4 SUBROUTINE etat0_netcdf (interbar, masque) 2 5 3 6 USE startvar … … 11 14 ! 12 15 ! 13 cINTEGER, PARAMETER :: KIDIA=1, KFDIA=iim*(jjm-1)+2,14 c.KLON=KFDIA-KIDIA+1,KLEV=llm16 ! INTEGER, PARAMETER :: KIDIA=1, KFDIA=iim*(jjm-1)+2, 17 ! .KLON=KFDIA-KIDIA+1,KLEV=llm 15 18 ! 16 19 #include "comgeom2.h" … … 21 24 #include "dimsoil.h" 22 25 ! 26 LOGICAL interbar 23 27 REAL :: latfi(klon), lonfi(klon) 24 28 REAL :: orog(iip1,jjp1), rugo(iip1,jjp1), masque(iip1,jjp1), … … 56 60 CHARACTER*80 :: varname 57 61 ! 58 INTEGER :: i,j, ig, l, ji 62 INTEGER :: i,j, ig, l, ji,ii1,ii2 59 63 REAL :: xpi 60 64 ! … … 87 91 REAL ::phystep,co2_ppm,solaire 88 92 INTEGER :: radpas 93 real zrel(iip1*jjp1),chmin,chmax 89 94 90 95 CHARACTER*80 :: visu_file … … 156 161 ! This line needs to be replaced by a call to restget to get the values in the restart file 157 162 orog(:,:) = 0.0 158 CALL startget(varname, iip1, jjp1, rlonv, rlatu, orog, 0.0) 163 CALL startget(varname, iip1, jjp1, rlonv, rlatu, orog, 0.0 , 164 , jjm ,rlonu,rlatv , interbar ) 159 165 ! 160 166 WRITE(*,*) 'OUT OF GET VARIABLE : Relief' … … 164 170 ! This line needs to be replaced by a call to restget to get the values in the restart file 165 171 rugo(:,:) = 0.0 166 CALL startget(varname, iip1, jjp1, rlonv, rlatu, rugo, 0.0) 172 CALL startget(varname, iip1, jjp1, rlonv, rlatu, rugo, 0.0 , 173 , jjm, rlonu,rlatv , interbar ) 167 174 ! 168 175 WRITE(*,*) 'OUT OF GET VARIABLE : Rugosite' … … 172 179 ! This line needs to be replaced by a call to restget to get the values in the restart file 173 180 masque(:,:) = 0.0 174 CALL startget(varname, iip1, jjp1, rlonv, rlatu, masque, 0.0) 181 CALL startget(varname, iip1, jjp1, rlonv, rlatu, masque, 0.0, 182 , jjm ,rlonu,rlatv , interbar ) 175 183 ! 176 184 WRITE(*,*) 'MASQUE construit : Masque' … … 187 195 varname = 'zmasq' 188 196 zmasq(:) = 0. 189 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,zmasq,0.0) 197 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,zmasq,0.0, 198 , jjm ,rlonu,rlatv , interbar ) 190 199 WHERE (zmasq(1 : klon) .LT. EPSFRA) 191 200 zmasq(1 : klon) = 0. … … 201 210 varname = 'psol' 202 211 psol(:,:) = 0.0 203 CALL startget(varname, iip1, jjp1, rlonv, rlatu, psol, 0.0) 212 CALL startget(varname, iip1, jjp1, rlonv, rlatu, psol, 0.0 , 213 , jjm ,rlonu,rlatv , interbar ) 204 214 ! 205 215 ! Compute here the pressure on the intermediate levels. One would expect that this is available in the GCM … … 229 239 varname = 'surfgeo' 230 240 phis(:,:) = 0.0 231 CALL startget(varname, iip1, jjp1, rlonv, rlatu, phis, 0.0) 232 write(*,*) 'Phis = ' 233 write(*,*)phis 241 CALL startget(varname, iip1, jjp1, rlonv, rlatu, phis, 0.0 , 242 , jjm ,rlonu,rlatv, interbar ) 234 243 ! 235 244 varname = 'u' 236 245 uvent(:,:,:) = 0.0 237 246 CALL startget(varname, iip1, jjp1, rlonu, rlatu, llm, pls, 238 . workvar, uvent, 0.0 )247 . workvar, uvent, 0.0, jjm ,rlonv, rlatv, interbar ) 239 248 ! 240 249 varname = 'v' 241 250 vvent(:,:,:) = 0.0 242 251 CALL startget(varname, iip1, jjm, rlonv, rlatv, llm, pls, 243 . workvar, vvent, 0.0 )252 . workvar, vvent, 0.0, jjp1, rlonu, rlatu, interbar ) 244 253 ! 245 254 varname = 't' 246 255 t3d(:,:,:) = 0.0 247 256 CALL startget(varname, iip1, jjp1, rlonv, rlatu, llm, pls, 248 . workvar, t3d, 0.0 )257 . workvar, t3d, 0.0 , jjm, rlonu, rlatv , interbar ) 249 258 ! 250 259 WRITE(*,*) 'T3D min,max:',minval(t3d(:,:,:)), … … 253 262 tpot(:,:,:) = 0.0 254 263 CALL startget(varname, iip1, jjp1, rlonv, rlatu, llm, pls, 255 . pk, tpot, 0.0 )264 . pk, tpot, 0.0 , jjm, rlonu, rlatv , interbar ) 256 265 ! 257 266 WRITE(*,*) 'T3D min,max:',minval(t3d(:,:,:)), … … 273 282 ! 274 283 varname = 'q' 275 q3d(:,:,:,:) = 0.0276 284 qd(:,:,:) = 0.0 277 285 q3d(:,:,:,:) = 0.0 … … 279 287 . maxval(qsat(:,:,:)) 280 288 CALL startget(varname, iip1, jjp1, rlonv, rlatu, llm, pls, 281 . qsat, qd, 0.0 )289 . qsat, qd, 0.0, jjm, rlonu, rlatv , interbar ) 282 290 q3d(:,:,:,1) = qd(:,:,:) 283 291 ! … … 285 293 ! This line needs to be replaced by a call to restget to get the values in the restart file 286 294 tsol(:) = 0.0 287 CALL startget(varname, iip1, jjp1, rlonv, rlatu, klon, tsol,0.0) 295 CALL startget(varname, iip1, jjp1, rlonv, rlatu, klon, tsol, 0.0, 296 . jjm, rlonu, rlatv , interbar ) 288 297 ! 289 298 WRITE(*,*) 'TSOL construit :' … … 292 301 varname = 'qsol' 293 302 qsol(:) = 0.0 294 CALL startget(varname, iip1, jjp1, rlonv, rlatu, klon, qsol,0.0) 303 CALL startget(varname, iip1, jjp1, rlonv, rlatu, klon, qsol, 0.0, 304 . jjm, rlonu, rlatv , interbar ) 295 305 ! 296 306 varname = 'snow' 297 307 sn(:) = 0.0 298 CALL startget(varname, iip1, jjp1, rlonv, rlatu, klon, sn,0.0) 308 CALL startget(varname, iip1, jjp1, rlonv, rlatu, klon, sn, 0.0, 309 . jjm, rlonu, rlatv , interbar ) 299 310 ! 300 311 varname = 'rads' 301 312 radsol(:) = 0.0 302 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,radsol,0.0) 313 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,radsol,0.0, 314 . jjm, rlonu, rlatv , interbar ) 303 315 ! 304 316 varname = 'deltat' 305 317 deltat(:) = 0.0 306 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,deltat,0.0) 318 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,deltat,0.0, 319 . jjm, rlonu, rlatv , interbar ) 307 320 ! 308 321 varname = 'rugmer' 309 322 rugmer(:) = 0.0 310 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,rugmer,0.0) 323 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,rugmer,0.0, 324 . jjm, rlonu, rlatv , interbar ) 311 325 ! 312 326 varname = 'agsno' 313 327 agesno(:) = 0.0 314 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,agesno,0.0) 328 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,agesno,0.0, 329 . jjm, rlonu, rlatv , interbar ) 315 330 316 331 varname = 'zmea' 317 332 zmea(:) = 0.0 318 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,zmea,0.0) 333 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,zmea,0.0, 334 . jjm, rlonu, rlatv , interbar ) 335 319 336 varname = 'zstd' 320 337 zstd(:) = 0.0 321 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,zstd,0.0) 338 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,zstd,0.0, 339 . jjm, rlonu, rlatv , interbar ) 322 340 varname = 'zsig' 323 341 zsig(:) = 0.0 324 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,zsig,0.0) 342 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,zsig,0.0, 343 . jjm, rlonu, rlatv , interbar ) 325 344 varname = 'zgam' 326 345 zgam(:) = 0.0 327 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,zgam,0.0) 346 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,zgam,0.0, 347 . jjm, rlonu, rlatv , interbar ) 328 348 varname = 'zthe' 329 349 zthe(:) = 0.0 330 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,zthe,0.0) 350 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,zthe,0.0, 351 . jjm, rlonu, rlatv , interbar ) 331 352 varname = 'zpic' 332 353 zpic(:) = 0.0 333 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,zpic,0.0) 354 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,zpic,0.0, 355 . jjm, rlonu, rlatv , interbar ) 334 356 varname = 'zval' 335 357 zval(:) = 0.0 336 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,zval,0.0) 358 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,zval,0.0, 359 . jjm, rlonu, rlatv , interbar ) 360 c 337 361 rugsrel(:) = 0.0 338 362 IF(ok_orodr) THEN 363 DO i = 1, iip1* jjp1 364 rugsrel(i) = MAX( 1.e-05, zstd(i)* zsig(i) /2. ) 365 ENDDO 366 ENDIF 339 367 C 340 368 C En cas de simulation couplee, lecture du masque ocean issu du modele ocean
Note: See TracChangeset
for help on using the changeset viewer.