source: LMDZ6/trunk/libf/dyn3d_common/divgrad.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.3 KB
Line 
1!
2! $Header$
3!
4SUBROUTINE divgrad (klevel,h, lh, divgra )
5  USE dimensions_mod, ONLY: iim, jjm, llm, ndm
6USE paramet_mod_h, ONLY: iip1, iip2, iip3, jjp1, llmp1, llmp2, llmm1, kftd, ip1jm, ip1jmp1, &
7          ip1jmi1, ijp1llm, ijmllm, mvar, jcfil, jcfllm
8IMPLICIT NONE
9  !
10  !=======================================================================
11  !
12  !  Auteur :   P. Le Van
13  !  ----------
14  !
15  !                          lh
16  !  calcul de  (div( grad ))   de h  .....
17  !  h  et lh  sont des arguments  d'entree pour le s-prog
18  !  divgra     est  un argument  de sortie pour le s-prog
19  !
20  !=======================================================================
21  !
22  !   declarations:
23  !   -------------
24  !
25
26
27  include "comgeom.h"
28  include "comdissipn.h"
29  !
30  INTEGER :: klevel
31  REAL :: h( ip1jmp1,klevel ), divgra( ip1jmp1,klevel )
32  !
33  REAL :: ghy(ip1jm,llm), ghx(ip1jmp1,llm)
34
35  INTEGER :: l,ij,iter,lh
36  !
37  !
38  !
39  CALL SCOPY ( ip1jmp1*klevel,h,1,divgra,1 )
40  !
41  DO iter = 1,lh
42
43  CALL filtreg ( divgra,jjp1,klevel,2,1,.true.,1  )
44
45  CALL    grad (klevel,divgra, ghx  , ghy          )
46  CALL  diverg (klevel,  ghx , ghy  , divgra       )
47
48  CALL filtreg ( divgra,jjp1,klevel,2,1,.true.,1)
49
50  DO l = 1,klevel
51  DO  ij = 1, ip1jmp1
52  divgra( ij,l ) = - cdivh * divgra( ij,l )
53  END DO
54  END DO
55  !
56  END DO
57  RETURN
58END SUBROUTINE divgrad
Note: See TracBrowser for help on using the repository browser.