/[lmdze]/trunk/Sources/dyn3d/convmas.f
ViewVC logotype

Contents of /trunk/Sources/dyn3d/convmas.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 107 - (show annotations)
Thu Sep 11 15:09:15 2014 UTC (9 years, 8 months ago) by guez
Original Path: trunk/dyn3d/convmas.f
File size: 1152 byte(s)
Imported procedure grilles_gcm_sub from LMDZ. Had then to transform
local variable phis of etat to argument.

Replaced calls to lnblnk by calls to trim.

Removed arguments nlat, klevel and griscal of filtreg. Replaced
integer arguments ifiltre and iaire by logical arguments direct and
intensive.

Changed default values of guide_t and guide_q to false.

1 module convmas_m
2
3 IMPLICIT NONE
4
5 contains
6
7 SUBROUTINE convmas(pbaru, pbarv, convm)
8
9 ! From LMDZ4/libf/dyn3d/convmas.F, version 1.1.1.1, 2004/05/19 12:53:07
10
11 USE dimens_m, ONLY: iim, jjm, llm
12 USE paramet_m, ONLY: ip1jm, ip1jmp1, jjp1, llmm1
13 USE filtreg_m, ONLY: filtreg
14
15 ! Authors: P. Le Van, F. Hourdin
16 ! Objet: calcul de la convergence du flux de masse aux niveaux p
17
18 ! Le calcul se fait de haut en bas, la convergence de masse au
19 ! niveau p(llm+1) est égale à 0 et n'est pas stockée dans le
20 ! tableau convm.
21
22 REAL, INTENT(IN):: pbaru(ip1jmp1, llm), pbarv(ip1jm, llm)
23 REAL, INTENT(OUT):: convm(iim + 1, jjm + 1, llm)
24
25 ! Local:
26 INTEGER l
27
28 !-----------------------------------------------------------------------
29
30 ! Calcul de - (d(pbaru)/dx + d(pbarv)/dy) :
31 CALL convflu(pbaru, pbarv, llm, convm)
32
33 ! Filtrage :
34 CALL filtreg(convm, direct = .true., intensive = .false.)
35
36 ! Intégration de la convergence de masse de haut en bas :
37 DO l = llmm1, 1, -1
38 convm(:, :, l) = convm(:, :, l) + convm(:, :, l+1)
39 END DO
40
41 END SUBROUTINE convmas
42
43 end module convmas_m

  ViewVC Help
Powered by ViewVC 1.1.21