LMDZ
massbarxy.F90
Go to the documentation of this file.
1 SUBROUTINE massbarxy(masse,massebxy)
2 !
3 !-------------------------------------------------------------------------------
4 ! Authors: P. Le Van , Fr. Hourdin.
5 !-------------------------------------------------------------------------------
6 ! Purpose: Compute air mass mean along X and Y in each cell.
7 ! See iniconst for more details.
8  IMPLICIT NONE
9  include "dimensions.h"
10  include "paramet.h"
11  include "comconst.h"
12  include "comgeom.h"
13 !===============================================================================
14 ! Arguments:
15  REAL, INTENT(IN) :: masse (ip1jmp1,llm)
16  REAL, INTENT(OUT) :: massebxy(ip1jm ,llm)
17 !===============================================================================
18 ! Local variables:
19  INTEGER :: ij, l
20 !===============================================================================
21  DO l=1,llm
22  DO ij=1,ip1jm-1
23  massebxy(ij,l)=masse(ij ,l)*alpha2(ij ) + &
24  + masse(ij+1 ,l)*alpha3(ij+1 ) + &
25  + masse(ij+iip1,l)*alpha1(ij+iip1) + &
26  + masse(ij+iip2,l)*alpha4(ij+iip2)
27  END DO
28  DO ij=iip1,ip1jm,iip1; massebxy(ij,l)=massebxy(ij-iim,l); END DO
29  END DO
30 
31 END SUBROUTINE massbarxy
!$Header iip2
Definition: paramet.h:14
!$Header llmm1 INTEGER ip1jmp1
Definition: paramet.h:14
subroutine massbarxy(masse, massebxy)
Definition: massbarxy.F90:2
!$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
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