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

Contents of /trunk/phylmd/transp.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 91 - (show annotations)
Wed Mar 26 17:18:58 2014 UTC (10 years, 1 month ago) by guez
File size: 1496 byte(s)
Removed unused variables lock_startdate and time_stamp of module
calendar.

Noticed that physiq does not change the surface pressure. So removed
arguments ps and dpfi of subroutine addfi. dpfi was always 0. The
computation of ps in addfi included some averaging at the poles. In
principle, this does not change ps but in practice it does because of
finite numerical precision. So the results of the simulation are
changed. Removed arguments ps and dpfi of calfis. Removed argument
d_ps of physiq.

du at the poles is not computed by dudv1, so declare only the
corresponding latitudes in dudv1. caldyn passes only a section of the
array dudyn as argument.

Removed variable niadv of module iniadvtrac_m.

Declared arguments of exner_hyb as assumed-shape arrays and made all
other horizontal sizes in exner_hyb dynamic. This allows the external
program test_disvert to use exner_hyb at a single horizontal position.

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

  ViewVC Help
Powered by ViewVC 1.1.21