- Timestamp:
- Apr 13, 2005, 3:53:20 PM (20 years ago)
- Location:
- LMDZ4/trunk/libf/dyn3d
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/dyn3d/guide.F
r524 r617 81 81 INTEGER step_rea,count_no_rea 82 82 83 real aire_min,aire_max84 83 integer ilon,ilat 85 84 real factt,ztau(ip1jmp1) 86 85 87 86 INTEGER itau,ij,l,i,j 88 integer ncid t,varidpl,nlev,status87 integer ncidpl,varidpl,nlev,status 89 88 integer rcod,rid 90 89 real ditau,tau,a … … 208 207 step_rea=1 209 208 count_no_rea=0 209 ncidpl=-99 210 210 211 211 c itau_test montre si l'importation a deja ete faite au rang itau 212 212 c lecture d'un fichier netcdf pour determiner le nombre de niveaux 213 ncidt=NCOPN('T.nc',NCNOWRIT,rcod) 213 if (guide_u) then 214 if (ncidpl.eq.-99) ncidpl=NCOPN('u.nc',NCNOWRIT,rcod) 215 endif 216 c 217 if (guide_v) then 218 if (ncidpl.eq.-99) ncidpl=NCOPN('v.nc',NCNOWRIT,rcod) 219 endif 220 c 221 if (guide_T) then 222 if (ncidpl.eq.-99) ncidpl=NCOPN('T.nc',NCNOWRIT,rcod) 223 endif 224 c 225 if (guide_Q) then 226 if (ncidpl.eq.-99) ncidpl=NCOPN('hur.nc',NCNOWRIT,rcod) 227 endif 228 c 214 229 if (ncep) then 215 status=NF_INQ_DIMID(ncid t,'LEVEL',rid)230 status=NF_INQ_DIMID(ncidpl,'LEVEL',rid) 216 231 else 217 status=NF_INQ_DIMID(ncid t,'PRESSURE',rid)218 endif 219 status=NF_INQ_DIMLEN(ncid t,rid,nlev)232 status=NF_INQ_DIMID(ncidpl,'PRESSURE',rid) 233 endif 234 status=NF_INQ_DIMLEN(ncidpl,rid,nlev) 220 235 print *,'nlev', nlev 221 call ncclos(ncid t,rcod)236 call ncclos(ncidpl,rcod) 222 237 c Lecture du premier etat des reanalyses. 223 238 call read_reanalyse(1,ps … … 296 311 tau=tau-aint(tau) 297 312 298 print*,'ATTENTION !!!! ON NE GUIDE QUE JUSQU A 15N'299 300 313 c ucov 301 314 if (guide_u) then … … 485 498 zlat=rlatv(j)*180./pi 486 499 endif 500 if (abs(grossismx-1.).lt.0.1.or.abs(grossismy-1.).lt.0.1) then 501 c pour une grille reguliere, xi=xxx**0=1 -> alpha=alphamin 502 alpha(i,j)=alphamin 503 else 487 504 xi=((dxdy_max-dxdy_)/(dxdy_max-dxdy_min))**gamma 488 c pour une grille reguliere, xi=xxx**0=1 -> alpha=alphamin489 505 xi=min(xi,1.) 490 506 if(lat_min_guide.le.zlat .and. zlat.le.lat_max_guide) then … … 493 509 alpha(i,j)=0. 494 510 endif 511 endif 495 512 enddo 496 513 enddo -
LMDZ4/trunk/libf/dyn3d/read_reanalyse.F
r524 r617 80 80 varidv=NCVID(ncidv,'VWND',rcode) 81 81 print*,'ncidv,varidv',ncidv,varidv 82 if (ncidpl.eq.-99) ncidpl=ncid u82 if (ncidpl.eq.-99) ncidpl=ncidv 83 83 endif 84 84 … … 88 88 varidt=NCVID(ncidt,'AIR',rcode) 89 89 print*,'ncidt,varidt',ncidt,varidt 90 if (ncidpl.eq.-99) ncidpl=ncid u90 if (ncidpl.eq.-99) ncidpl=ncidt 91 91 endif 92 92 … … 96 96 varidQ=NCVID(ncidQ,'RH',rcode) 97 97 print*,'ncidQ,varidQ',ncidQ,varidQ 98 if (ncidpl.eq.-99) ncidpl=ncid u98 if (ncidpl.eq.-99) ncidpl=ncidQ 99 99 endif 100 100 … … 159 159 count(3)=nlevnc 160 160 count(4)=1 161 162 c mise a zero des tableaux 163 c ------------------------ 164 unc(:,:,:)=0. 165 vnc(:,:,:)=0. 166 tnc(:,:,:)=0. 167 Qnc(:,:,:)=0. 161 168 162 169 c Vent zonal
Note: See TracChangeset
for help on using the changeset viewer.