source: dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/transp.F90 @ 3983

Last change on this file since 3983 was 3818, checked in by millour, 10 years ago

Some partial cleanup on uses of "dimensions.h" in physics.
At this point 3D gcm compiles and bench seems to run fine :-)
EM

File size: 1.3 KB
Line 
1
2! $Header$
3
4SUBROUTINE transp(paprs, tsol, t, q, u, v, geom, vtran_e, vtran_q, utran_e, &
5    utran_q)
6
7  USE dimphy
8  IMPLICIT NONE
9  ! ======================================================================
10  ! Auteur(s): Z.X.Li (LMD/CNRS)
11  ! Date: le 25 avril 1994
12  ! Objet: Calculer le transport de l'energie et de la vapeur d'eau
13  ! ======================================================================
14
15  include "YOMCST.h"
16
17  REAL paprs(klon, klev+1), tsol(klon)
18  REAL t(klon, klev), q(klon, klev), u(klon, klev), v(klon, klev)
19  REAL utran_e(klon), utran_q(klon), vtran_e(klon), vtran_q(klon)
20
21  INTEGER i, l
22  ! ------------------------------------------------------------------
23  REAL geom(klon, klev), e
24  ! ------------------------------------------------------------------
25  DO i = 1, klon
26    utran_e(i) = 0.0
27    utran_q(i) = 0.0
28    vtran_e(i) = 0.0
29    vtran_q(i) = 0.0
30  END DO
31
32  DO l = 1, klev
33    DO i = 1, klon
34      e = rcpd*t(i, l) + rlvtt*q(i, l) + geom(i, l)
35      utran_e(i) = utran_e(i) + u(i, l)*e*(paprs(i,l)-paprs(i,l+1))/rg
36      utran_q(i) = utran_q(i) + u(i, l)*q(i, l)*(paprs(i,l)-paprs(i,l+1))/rg
37      vtran_e(i) = vtran_e(i) + v(i, l)*e*(paprs(i,l)-paprs(i,l+1))/rg
38      vtran_q(i) = vtran_q(i) + v(i, l)*q(i, l)*(paprs(i,l)-paprs(i,l+1))/rg
39    END DO
40  END DO
41
42  RETURN
43END SUBROUTINE transp
Note: See TracBrowser for help on using the repository browser.