/[lmdze]/trunk/libf/phylmd/transp.f
ViewVC logotype

Contents of /trunk/libf/phylmd/transp.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 38 - (show annotations)
Thu Jan 6 17:52:19 2011 UTC (13 years, 4 months ago) by guez
File size: 1625 byte(s)
Extracted ASCII art from "inigeom" into a separate text file in the
documentation.

"test_disvert" now creates a separate file for layer thicknesses.

Moved variables from module "yomcst" to module "suphec_m" because this
is where those variables are defined. Kept in "yomcst" only parameters
of Earth orbit. Gave the attribute "parameter" to some variables of
module "suphec_m".

Variables of module "yoethf" were defined in procedure "suphec". Moved
these definitions to a new procedure "yoethf" in module "yoethf_m".

1 !
2 ! $Header: /home/cvsroot/LMDZ4/libf/phylmd/transp.F,v 1.1.1.1 2004/05/19 12:53:09 lmdzadmin Exp $
3 !
4 SUBROUTINE transp (paprs,tsol,
5 e t, q, u, v, geom,
6 s vtran_e, vtran_q, utran_e, utran_q)
7 c
8 use dimens_m
9 use dimphy
10 use SUPHEC_M
11 IMPLICIT none
12 c======================================================================
13 c Auteur(s): Z.X.Li (LMD/CNRS)
14 c Date: le 25 avril 1994
15 c Objet: Calculer le transport de l'energie et de la vapeur d'eau
16 c======================================================================
17 c
18 c
19 REAL, intent(in):: paprs(klon,klev+1)
20 real tsol(klon)
21 REAL t(klon,klev), q(klon,klev), u(klon,klev), v(klon,klev)
22 REAL utran_e(klon), utran_q(klon), vtran_e(klon), vtran_q(klon)
23 c
24 INTEGER i, l
25 c ------------------------------------------------------------------
26 REAL geom(klon,klev), e
27 c ------------------------------------------------------------------
28 DO i = 1, klon
29 utran_e(i) = 0.0
30 utran_q(i) = 0.0
31 vtran_e(i) = 0.0
32 vtran_q(i) = 0.0
33 ENDDO
34 c
35 DO l = 1, klev
36 DO i = 1, klon
37 e = RCPD*t(i,l) + RLVTT*q(i,l) + geom(i,l)
38 utran_e(i)=utran_e(i)+ u(i,l)*e*(paprs(i,l)-paprs(i,l+1))/RG
39 utran_q(i)=utran_q(i)+ u(i,l)*q(i,l)
40 . *(paprs(i,l)-paprs(i,l+1))/RG
41 vtran_e(i)=vtran_e(i)+ v(i,l)*e*(paprs(i,l)-paprs(i,l+1))/RG
42 vtran_q(i)=vtran_q(i)+ v(i,l)*q(i,l)
43 . *(paprs(i,l)-paprs(i,l+1))/RG
44 ENDDO
45 ENDDO
46 c
47 RETURN
48 END

  ViewVC Help
Powered by ViewVC 1.1.21