source: LMDZ5/branches/testing/libf/phylmd/transp.F90 @ 2056

Last change on this file since 2056 was 1999, checked in by Laurent Fairhead, 11 years ago

Merged trunk changes r1920:1997 into testing branch

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 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  ! ym#include "dimensions.h"
16  ! ym#include "dimphy.h"
17  include "YOMCST.h"
18
19  REAL paprs(klon, klev+1), tsol(klon)
20  REAL t(klon, klev), q(klon, klev), u(klon, klev), v(klon, klev)
21  REAL utran_e(klon), utran_q(klon), vtran_e(klon), vtran_q(klon)
22
23  INTEGER i, l
24  ! ------------------------------------------------------------------
25  REAL geom(klon, klev), e
26  ! ------------------------------------------------------------------
27  DO i = 1, klon
28    utran_e(i) = 0.0
29    utran_q(i) = 0.0
30    vtran_e(i) = 0.0
31    vtran_q(i) = 0.0
32  END DO
33
34  DO l = 1, klev
35    DO i = 1, klon
36      e = rcpd*t(i, l) + rlvtt*q(i, l) + geom(i, l)
37      utran_e(i) = utran_e(i) + u(i, l)*e*(paprs(i,l)-paprs(i,l+1))/rg
38      utran_q(i) = utran_q(i) + u(i, l)*q(i, l)*(paprs(i,l)-paprs(i,l+1))/rg
39      vtran_e(i) = vtran_e(i) + v(i, l)*e*(paprs(i,l)-paprs(i,l+1))/rg
40      vtran_q(i) = vtran_q(i) + v(i, l)*q(i, l)*(paprs(i,l)-paprs(i,l+1))/rg
41    END DO
42  END DO
43
44  RETURN
45END SUBROUTINE transp
Note: See TracBrowser for help on using the repository browser.