source: LMDZ6/trunk/libf/dyn3d_common/convmas.f90 @ 5272

Last change on this file since 5272 was 5272, checked in by abarral, 23 hours ago

Turn paramet.h into a module

  • 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
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1SUBROUTINE convmas (pbaru, pbarv, convm)
2!
3!-------------------------------------------------------------------------------
4! Authors: P. Le Van , Fr. Hourdin.
5!-------------------------------------------------------------------------------
6! Purpose: Compute mass flux convergence at p levels.
7  USE dimensions_mod, ONLY: iim, jjm, llm, ndm
8USE paramet_mod_h, ONLY: iip1, iip2, iip3, jjp1, llmp1, llmp2, llmm1, kftd, ip1jm, ip1jmp1, &
9          ip1jmi1, ijp1llm, ijmllm, mvar, jcfil, jcfllm
10IMPLICIT NONE
11
12
13  include "comgeom.h"
14!===============================================================================
15! Arguments:
16  REAL, INTENT(IN)  :: pbaru(ip1jmp1,llm)
17  REAL, INTENT(IN)  :: pbarv(ip1jm  ,llm)
18  REAL, INTENT(OUT) :: convm(ip1jmp1,llm)
19!===============================================================================
20! Method used:   Computation from top to bottom.
21!   Mass convergence at level llm is equal to zero and is not stored in convm.
22!===============================================================================
23! Local variables:
24  INTEGER :: l
25!===============================================================================
26
27!--- Computation of - (d(pbaru)/dx + d(pbarv)/dy )
28  CALL convflu( pbaru, pbarv, llm, convm )
29
30!--- Filter
31  CALL filtreg( convm, jjp1, llm, 2, 2, .TRUE., 1 )
32
33!--- Mass convergence is integrated from top to bottom
34  DO l=llmm1,1,-1
35    convm(:,l) = convm(:,l) + convm(:,l+1)
36  END DO
37
38END SUBROUTINE convmas
Note: See TracBrowser for help on using the repository browser.