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

Contents of /trunk/phylmd/transp.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 81 - (show annotations)
Wed Mar 5 14:38:41 2014 UTC (10 years, 2 months ago) by guez
Original Path: trunk/phylmd/transp.f90
File size: 1480 byte(s)
 Converted to free source form files which were still in fixed source
form. The conversion was done using the polish mode of the NAG Fortran
Compiler.

In addition to converting to free source form, the processing of the
files also:

-- indented the code (including comments);

-- set Fortran keywords to uppercase, and set all other identifiers
to lower case;

-- added qualifiers to end statements (for example "end subroutine
conflx", instead of "end");

-- changed the terminating statements of all DO loops so that each
loop ends with an ENDDO statement (instead of a labeled continue).

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