Changeset 1346
- Timestamp:
- Sep 10, 2014, 2:28:04 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/physiq.F90
r1329 r1346 833 833 834 834 ! Compute vertical velocity (m/s) from vertical mass flux 835 ! w = F / (rho*area) and rho = r*T/P835 ! w = F / (rho*area) and rho = P/(r*T) 836 836 ! but first linearly interpolate mass flux to mid-layers 837 837 do l=1,nlayer-1 … … 840 840 pw(1:ngrid,nlayer)=0.5*flxw(1:ngrid,nlayer) ! since flxw(nlayer+1)=0 841 841 do l=1,nlayer 842 pw(1:ngrid,l)=(pw(1:ngrid,l)* pplay(1:ngrid,l)) / &843 ( r*pt(1:ngrid,l)*area(1:ngrid))842 pw(1:ngrid,l)=(pw(1:ngrid,l)*r*pt(1:ngrid,l)) / & 843 (pplay(1:ngrid,l)*area(1:ngrid)) 844 844 enddo 845 845 -
trunk/LMDZ.MARS/libf/phymars/physiq.F
r1313 r1346 580 580 581 581 ! Compute vertical velocity (m/s) from vertical mass flux 582 ! w = F / (rho*area) and rho = r*T/P582 ! w = F / (rho*area) and rho = P/(r*T) 583 583 ! but first linearly interpolate mass flux to mid-layers 584 584 do l=1,nlayer-1 … … 587 587 pw(1:ngrid,nlayer)=0.5*flxw(1:ngrid,nlayer) ! since flxw(nlayer+1)=0 588 588 do l=1,nlayer 589 pw(1:ngrid,l)=(pw(1:ngrid,l)* pplay(1:ngrid,l)) /590 & ( r*pt(1:ngrid,l)*area(1:ngrid))591 ! NB: here we use r and no rrnew since this diagnostic comes589 pw(1:ngrid,l)=(pw(1:ngrid,l)*r*pt(1:ngrid,l)) / 590 & (pplay(1:ngrid,l)*area(1:ngrid)) 591 ! NB: here we use r and not rnew since this diagnostic comes 592 592 ! from the dynamics 593 593 enddo
Note: See TracChangeset
for help on using the changeset viewer.