Changeset 1529 for trunk/LMDZ.GENERIC/libf/phystd/mass_redistribution.F90
- Timestamp:
- Apr 5, 2016, 10:51:51 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/mass_redistribution.F90
r1526 r1529 1 1 SUBROUTINE mass_redistribution(ngrid,nlayer,nq,ptimestep, & 2 2 rnat,pcapcal,pplay,pplev,pt,ptsrf,pq,pqs, & 3 3 pu,pv,pdt,pdtsrf,pdq,pdu,pdv,pdmassmr, & … … 224 224 ! Van Leer scheme: 225 225 w(1:nlayer+1)=-zmflux(1:nlayer+1)*ptimestep 226 call vl1d( zzt,2.,zzmass,w,ztm)227 call vl1d( zzu,2.,zzmass,w,zum)228 call vl1d( zzv,2.,zzmass,w,zvm)226 call vl1d(nlayer,zzt,2.,zzmass,w,ztm) 227 call vl1d(nlayer,zzu,2.,zzmass,w,zum) 228 call vl1d(nlayer,zzv,2.,zzmass,w,zvm) 229 229 do iq=1,nq 230 230 zq1(1:nlayer)=zzq(1:nlayer,iq) … … 232 232 ! print*,iq 233 233 ! print*,zq1 234 call vl1d( zq1,2.,zzmass,w,zqm1)234 call vl1d(nlayer,zq1,2.,zzmass,w,zqm1) 235 235 do l=2,nlayer 236 236 zzq(l,iq)=zq1(l) … … 281 281 END DO ! loop on ig 282 282 283 return 284 end 285 286 283 CONTAINS 287 284 288 285 ! ***************************************************************** 289 SUBROUTINE vl1d( q,pente_max,zzmass,w,qm)286 SUBROUTINE vl1d(llm,q,pente_max,zzmass,w,qm) 290 287 ! 291 288 ! … … 299 296 ! 300 297 ! -------------------------------------------------------------------- 298 301 299 IMPLICIT NONE 302 303 #include "dimensions.h"304 300 305 301 ! Arguments: 306 302 ! ---------- 303 integer,intent(in) :: llm 307 304 real zzmass(llm),pente_max 308 305 REAL q(llm),qm(llm+1) … … 406 403 ! end if 407 404 408 return 409 end 405 END SUBROUTINE vl1d 406 407 END SUBROUTINE mass_redistribution
Note: See TracChangeset
for help on using the changeset viewer.