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

Annotation of /trunk/dyn3d/massbarxy.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 79 - (hide annotations)
Fri Feb 28 17:52:47 2014 UTC (10 years, 3 months ago) by guez
Original Path: trunk/dyn3d/massbarxy.f90
File size: 1106 byte(s)
Moved procedure iniconst inside module comconst. Removed useless
variables of module comconst: im, jm, lllm, imp1, jmp1, lllmm1,
lllmp1, lcl, cotot, unsim. Move definition of dtvr that was in
dynetat0 and etat0 to iniconst. Moved comparison of dtvr from day_step
and start.nc that was in gcm to dynetat0. Moved call to disvert out of
iniconst. Moved call to iniconst in gcm before call to dynetat0.

Removed unused argument pvteta of physiq (not used either in LMDZ).

1 guez 78 module massbarxy_m
2 guez 3
3 guez 78 IMPLICIT NONE
4 guez 3
5 guez 78 contains
6 guez 3
7 guez 78 SUBROUTINE massbarxy(masse, massebxy)
8 guez 3
9 guez 78 ! From LMDZ4/libf/dyn3d/massbarxy.F, version 1.1.1.1 2004/05/19 12:53:07
10 guez 3
11 guez 78 ! Calcule les moyennes en x et y de la masse d'air dans chaque maille.
12 guez 79 ! Authors: P. Le Van, F. Hourdin.
13 guez 78
14     USE dimens_m, ONLY: iim, llm
15     USE paramet_m, ONLY: iip1, iip2, ip1jm, ip1jmp1
16     USE comgeom, ONLY: alpha1, alpha2, alpha3, alpha4
17    
18     REAL, intent(in):: masse(ip1jmp1, llm)
19     real, intent(out):: massebxy(ip1jm, llm)
20    
21     ! Local:
22     integer l, ij
23    
24     !-------------------------------------------------------------------
25    
26     DO l = 1, llm
27     DO ij = 1, ip1jm - 1
28     massebxy(ij, l) = masse(ij, l) * alpha2(ij) &
29     + masse(ij + 1, l) * alpha3(ij + 1) &
30     + masse(ij + iip1, l) * alpha1(ij + iip1) &
31     + masse(ij + iip2, l) * alpha4(ij + iip2)
32     end DO
33    
34     ! correction pour massebxy(iip1, j)
35     DO ij = iip1, ip1jm, iip1
36     massebxy(ij, l) = massebxy(ij - iim, l)
37     end DO
38     end DO
39    
40     END SUBROUTINE massbarxy
41    
42     end module massbarxy_m

  ViewVC Help
Powered by ViewVC 1.1.21