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

Contents of /trunk/dyn3d/convmas.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 91 - (show annotations)
Wed Mar 26 17:18:58 2014 UTC (10 years, 2 months ago) by guez
File size: 1161 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 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: 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(ip1jmp1, llm)
24
25 ! Local:
26 INTEGER l, ij
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, jjp1, llm, 2, 2, .TRUE.)
35
36 ! Intégration de la convergence de masse de haut en bas :
37 DO l = llmm1, 1, -1
38 DO ij = 1, ip1jmp1
39 convm(ij, l) = convm(ij, l) + convm(ij, l+1)
40 END DO
41 END DO
42
43 END SUBROUTINE convmas
44
45 end module convmas_m

  ViewVC Help
Powered by ViewVC 1.1.21