source: LMDZ6/trunk/libf/dyn3dmem/convmas2_loc.f90 @ 5300

Last change on this file since 5300 was 5285, checked in by abarral, 4 days ago

As discussed internally, remove generic ONLY: ... for new _mod_h modules

  • 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
RevLine 
[2336]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.
[5281]8  USE comgeom_mod_h
[2336]9  USE parallel_lmdz
[5271]10  USE dimensions_mod, ONLY: iim, jjm, llm, ndm
[5285]11USE paramet_mod_h
[5271]12IMPLICIT NONE
13
[5272]14
[2336]15!===============================================================================
16! Arguments:
17  REAL, INTENT(INOUT) :: convm(ijb_u:ije_u,llm)
18!===============================================================================
19! Method used:   Computation from top to bottom.
20!   Mass convergence at level llm is equal to zero and is not stored in convm.
21!===============================================================================
22! Local variables:
23  INTEGER :: l, ijb, ije
24!===============================================================================
[1632]25
[2336]26!$OMP MASTER
27!--- Mass convergence is integrated from top to bottom
28  ijb=ij_begin
29  ije=ij_end+iip1
30  IF(pole_sud) ije=ij_end
31  DO l=llmm1,1,-1
32    convm(ijb:ije,l) = convm(ijb:ije,l) + convm(ijb:ije,l+1)
33  END DO
34!$OMP END MASTER
[1632]35
[2336]36END SUBROUTINE convmas2_loc
[1632]37
Note: See TracBrowser for help on using the repository browser.