source: LMDZ6/branches/LMDZ-QUEST/libf/dyn3dmem/convmas2_loc.F90 @ 3698

Last change on this file since 3698 was 2603, checked in by Ehouarn Millour, 8 years ago

Cleanup in the dynamics: turn logic.h into module logic_mod.F90
EM

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
File size: 1.3 KB
Line 
1SUBROUTINE convmas2_loc (convm)
2!
3!-------------------------------------------------------------------------------
4! Authors: P. Le Van , Fr. Hourdin.
5!-------------------------------------------------------------------------------
6! Purpose: Compute mass flux convergence at p levels.
7!          Equivalent to convmas_loc if convmas1_loc is called before.
8  USE parallel_lmdz
9  IMPLICIT NONE
10  include "dimensions.h"
11  include "paramet.h"
12  include "comgeom.h"
13!===============================================================================
14! Arguments:
15  REAL, INTENT(INOUT) :: convm(ijb_u:ije_u,llm)
16!===============================================================================
17! Method used:   Computation from top to bottom.
18!   Mass convergence at level llm is equal to zero and is not stored in convm.
19!===============================================================================
20! Local variables:
21  INTEGER :: l, ijb, ije
22!===============================================================================
23
24!$OMP MASTER
25!--- Mass convergence is integrated from top to bottom
26  ijb=ij_begin
27  ije=ij_end+iip1
28  IF(pole_sud) ije=ij_end
29  DO l=llmm1,1,-1
30    convm(ijb:ije,l) = convm(ijb:ije,l) + convm(ijb:ije,l+1)
31  END DO
32!$OMP END MASTER
33
34END SUBROUTINE convmas2_loc
35
Note: See TracBrowser for help on using the repository browser.