Changeset 5144 for LMDZ6/branches/Amaury_dev/libf/phylmd/transp.F90
- Timestamp:
- Jul 29, 2024, 11:01:04 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/transp.F90
r5105 r5144 1 2 1 ! $Id$ 3 2 4 SUBROUTINE transp(paprs, tsol, t, q, ql, qs, u, v, geom, & 5 3 SUBROUTINE transp(paprs, tsol, t, q, ql, qs, u, v, geom, & 4 utran_e, vtran_e, utran_q, vtran_q, utran_w, vtran_w) 6 5 7 6 USE dimphy 7 USE lmdz_yomcst 8 8 9 IMPLICIT NONE 9 10 ! ====================================================================== … … 13 14 ! ====================================================================== 14 15 15 include "YOMCST.h"16 17 16 !--inputs 18 REAL, INTENT(IN) :: paprs(klon, klev+1), tsol(klon), geom(klon, klev)19 REAL, INTENT(IN) 20 REAL, INTENT(IN) 17 REAL, INTENT(IN) :: paprs(klon, klev + 1), tsol(klon), geom(klon, klev) 18 REAL, INTENT(IN) :: t(klon, klev), q(klon, klev), ql(klon, klev), qs(klon, klev) 19 REAL, INTENT(IN) :: u(klon, klev), v(klon, klev) 21 20 !--outputs 22 21 REAL, INTENT(OUT) :: utran_e(klon), vtran_e(klon) !--lateral flux of dry static energy (J m-1 s-1) … … 39 38 DO l = 1, klev 40 39 DO i = 1, klon 41 dm = (paprs(i,l)-paprs(i,l+1))/RG !--mass of layer kg m-240 dm = (paprs(i, l) - paprs(i, l + 1)) / RG !--mass of layer kg m-2 42 41 !--moist static energy 43 ! e = rcpd*t(i, l) + rlvtt*q(i, l) + geom(i, l)42 ! e = rcpd*t(i, l) + rlvtt*q(i, l) + geom(i, l) 44 43 !--dry static energy 45 e = rcpd *t(i, l) + geom(i, l)46 utran_e(i) = utran_e(i) + u(i, l) *e*dm47 vtran_e(i) = vtran_e(i) + v(i, l) *e*dm44 e = rcpd * t(i, l) + geom(i, l) 45 utran_e(i) = utran_e(i) + u(i, l) * e * dm 46 vtran_e(i) = vtran_e(i) + v(i, l) * e * dm 48 47 !--water vapour 49 utran_q(i) = utran_q(i) + u(i, l) *q(i,l)*dm50 vtran_q(i) = vtran_q(i) + v(i, l) *q(i,l)*dm48 utran_q(i) = utran_q(i) + u(i, l) * q(i, l) * dm 49 vtran_q(i) = vtran_q(i) + v(i, l) * q(i, l) * dm 51 50 !--total water 52 utran_w(i) = utran_w(i) + u(i, l) *(q(i,l)+ql(i,l)+qs(i,l))*dm53 vtran_w(i) = vtran_w(i) + v(i, l) *(q(i,l)+ql(i,l)+qs(i,l))*dm51 utran_w(i) = utran_w(i) + u(i, l) * (q(i, l) + ql(i, l) + qs(i, l)) * dm 52 vtran_w(i) = vtran_w(i) + v(i, l) * (q(i, l) + ql(i, l) + qs(i, l)) * dm 54 53 ENDDO 55 54 ENDDO 56 55 57 58 56 END SUBROUTINE transp
Note: See TracChangeset
for help on using the changeset viewer.