source: LMDZ5/trunk/libf/phylmd/transp.F90 @ 5423

Last change on this file since 5423 was 2346, checked in by Ehouarn Millour, 9 years ago

Physics/dynamics separation:

  • remove all references to dimensions.h from physics. nbp_lon (==iim) , nbp_lat (==jjm+1) and nbp_lev (==llm) from mod_grid_phy_lmdz should be used instead.
  • added module regular_lonlat_mod in phy_common to store information about the global (lon-lat) grid cell boundaries and centers.

EM

  • 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.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.