LMDZ
massbarxy_p.F
Go to the documentation of this file.
1  SUBROUTINE massbarxy_p( masse, massebxy )
3  implicit none
4 c **********************************************************************
5 c
6 c Calcule les moyennes en x et y de la masse d'air dans chaque maille.
7 c **********************************************************************
8 c Auteurs : P. Le Van , Fr. Hourdin .
9 c ..........
10 c
11 c .. masse est un argum. d'entree pour le s-pg ...
12 c .. massebxy est un argum. de sortie pour le s-pg ...
13 c
14 c
15 c IMPLICIT NONE
16 c
17 #include "dimensions.h"
18 #include "paramet.h"
19 #include "comconst.h"
20 #include "comgeom.h"
21 c
22  REAL masse( ip1jmp1,llm ), massebxy( ip1jm,llm )
23 c
24  INTEGER ij,l,ijb,ije
25 
26 
27  ijb=ij_begin-iip1
28  ije=ij_end
29 
30  if (pole_nord) ijb=ijb+iip1
31  if (pole_sud) ije=ije-iip1
32 
33 c$OMP DO SCHEDULE(STATIC,OMP_CHUNK)
34  DO 100 l = 1 , llm
35 c
36  DO 5 ij = ijb, ije - 1
37  massebxy( ij,l ) = masse( ij ,l ) * alpha2( ij ) +
38  + masse( ij+1 ,l ) * alpha3( ij+1 ) +
39  + masse( ij+iip1,l ) * alpha1( ij+iip1 ) +
40  + masse( ij+iip2,l ) * alpha4( ij+iip2 )
41  5 CONTINUE
42 
43 c .... correction pour massebxy( iip1,j ) ........
44 
45 CDIR$ IVDEP
46 
47  DO 7 ij = ijb+iip1-1, ije+iip1-1, iip1
48  massebxy( ij,l ) = massebxy( ij - iim,l )
49  7 CONTINUE
50 
51 100 CONTINUE
52 c$OMP END DO NOWAIT
53 c
54  RETURN
55  END
!$Header iip2
Definition: paramet.h:14
!$Header llmm1 INTEGER ip1jmp1
Definition: paramet.h:14
integer, save ij_end
logical, save pole_sud
!$Id Turb_fcg_gcssold get_uvd hqturb_gcssold endif!large scale llm day day1 day day1 *dt_toga endif!time annee_ref dt_toga u_toga vq_toga w_prof vq_prof llm day day1 day day1 *dt_dice endif!time annee_ref dt_dice swup_dice vg_dice omega_dice tg_prof vg_profd w_profd omega_profd!do llm!print llm l llm
!$Header!CDK comgeom COMMON comgeom && alpha1
Definition: comgeom.h:25
!$Header!CDK comgeom COMMON comgeom alpha4
Definition: comgeom.h:25
!$Header!CDK comgeom COMMON comgeom alpha3
Definition: comgeom.h:25
!$Header llmm1 INTEGER ip1jm
Definition: paramet.h:14
logical, save pole_nord
integer, save ij_begin
c c zjulian c cym CALL iim cym klev iim
Definition: ini_bilKP_ave.h:24
!$Header!CDK comgeom COMMON comgeom alpha2
Definition: comgeom.h:25
subroutine massbarxy_p(masse, massebxy)
Definition: massbarxy_p.F:2