Changeset 764 for LMDZ4/trunk/libf/dyn3dpar/guide_p.F
- Timestamp:
- Jun 4, 2007, 4:13:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/dyn3dpar/guide_p.F
r630 r764 82 82 INTEGER step_rea,count_no_rea 83 83 84 real aire_min,aire_max84 c real aire_min,aire_max 85 85 integer ilon,ilat 86 86 real factt,ztau(ip1jmp1) 87 87 88 88 INTEGER itau,ij,l,i,j 89 integer ncid t,varidpl,nlev,status89 integer ncidpl,varidpl,nlev,status 90 90 integer rcod,rid 91 91 real ditau,tau,a … … 218 218 step_rea=1 219 219 count_no_rea=0 220 220 ncidpl=-99 221 221 c itau_test montre si l'importation a deja ete faite au rang itau 222 222 c lecture d'un fichier netcdf pour determiner le nombre de niveaux 223 if (mpi_rank==0) then 224 ncidt=NCOPN('T.nc',NCNOWRIT,rcod) 223 IF (mpi_rank==0) THEN 224 225 if (guide_u) then 226 if (ncidpl.eq.-99) ncidpl=NCOPN('u.nc',NCNOWRIT,rcod) 227 endif 228 c 229 if (guide_v) then 230 if (ncidpl.eq.-99) ncidpl=NCOPN('v.nc',NCNOWRIT,rcod) 231 endif 232 c 233 if (guide_T) then 234 if (ncidpl.eq.-99) ncidpl=NCOPN('T.nc',NCNOWRIT,rcod) 235 endif 236 c 237 if (guide_Q) then 238 if (ncidpl.eq.-99) ncidpl=NCOPN('hur.nc',NCNOWRIT,rcod) 239 endif 240 c 225 241 if (ncep) then 226 status=NF_INQ_DIMID(ncid t,'LEVEL',rid)242 status=NF_INQ_DIMID(ncidpl,'LEVEL',rid) 227 243 else 228 status=NF_INQ_DIMID(ncid t,'PRESSURE',rid)229 endif 230 status=NF_INQ_DIMLEN(ncid t,rid,nlev)244 status=NF_INQ_DIMID(ncidpl,'PRESSURE',rid) 245 endif 246 status=NF_INQ_DIMLEN(ncidpl,rid,nlev) 231 247 print *,'nlev', nlev 232 call ncclos(ncidt,rcod) 233 endif 248 call ncclos(ncidpl,rcod) 249 250 ENDIF 234 251 235 252 c Lecture du premier etat des reanalyses. … … 338 355 tau=tau-aint(tau) 339 356 340 print*,'ATTENTION !!!! ON NE GUIDE QUE JUSQU A 15N'341 342 357 c ucov 343 358 ijb=ij_begin … … 532 547 zlat=rlatv(j)*180./pi 533 548 endif 549 if (abs(grossismx-1.).lt.0.1.or.abs(grossismy-1.).lt.0.1) then 550 c pour une grille reguliere, xi=xxx**0=1 -> alpha=alphamin 551 alpha(i,j)=alphamin 552 else 534 553 xi=((dxdy_max-dxdy_)/(dxdy_max-dxdy_min))**gamma 535 c pour une grille reguliere, xi=xxx**0=1 -> alpha=alphamin536 554 xi=min(xi,1.) 537 555 if(lat_min_guide.le.zlat .and. zlat.le.lat_max_guide) then … … 540 558 alpha(i,j)=0. 541 559 endif 560 endif 542 561 enddo 543 562 enddo
Note: See TracChangeset
for help on using the changeset viewer.