/[lmdze]/trunk/dyn3d/dteta1.f
ViewVC logotype

Contents of /trunk/dyn3d/dteta1.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 64 - (show annotations)
Wed Aug 29 14:47:17 2012 UTC (11 years, 9 months ago) by guez
Original Path: trunk/libf/dyn3d/dteta1.f90
File size: 1172 byte(s)
Removed variable lstardis in module comdissnew and procedures gradiv
and nxgrarot. lstardir had to be true. gradiv and nxgrarot were called
if lstardis was false. Removed argument iter of procedure
filtreg. iter had to be 1. gradiv and nxgrarot called filtreg with
iter == 2.

Moved procedure flxsetup into module yoecumf. Module yoecumf is only
used in program units of directory Conflx, moved it there.

1 SUBROUTINE dteta1(teta, pbaru, pbarv, dteta)
2
3 ! From LMDZ4/libf/dyn3d/dteta1.F, version 1.1.1.1 2004/05/19 12:53:06
4 ! Auteurs : P. Le Van, F. Forget
5
6 ! Calcul du terme de convergence horizontale du flux d'enthalpie
7 ! potentielle.
8
9 ! dteta est un argument de sortie pour le s-pg
10
11 use dimens_m
12 use paramet_m
13 use conf_gcm_m
14 use filtreg_m, only: filtreg
15
16 IMPLICIT NONE
17
18 REAL, intent(in):: teta(ip1jmp1, llm), pbaru(ip1jmp1, llm), pbarv(ip1jm, llm)
19 REAL dteta(ip1jmp1, llm)
20 INTEGER l, ij
21
22 REAL hbyv(ip1jm, llm), hbxu(ip1jmp1, llm)
23
24 !----------------------------------------------------------------
25
26 DO l = 1, llm
27 DO ij = iip2, ip1jm - 1
28 hbxu(ij, l) = pbaru(ij, l) * 0.5 * (teta(ij, l) + teta(ij + 1, l))
29 end DO
30
31 DO ij = iip1+ iip1, ip1jm, iip1
32 hbxu(ij, l) = hbxu(ij - iim, l)
33 end DO
34
35 DO ij = 1, ip1jm
36 hbyv(ij, l)= pbarv(ij, l) * 0.5 * (teta(ij, l) + teta(ij + iip1, l))
37 end DO
38 end DO
39
40 CALL convflu(hbxu, hbyv, llm, dteta)
41
42 ! stockage dans dh de la convergence horizont. filtree' du flux
43 ! d'enthalpie potentielle
44 CALL filtreg(dteta, jjp1, llm, 2, 2, .true.)
45
46 END SUBROUTINE dteta1

  ViewVC Help
Powered by ViewVC 1.1.21