source: LMDZ6/branches/Amaury_dev/libf/dyn3d_common/divgrad.f90 @ 5136

Last change on this file since 5136 was 5136, checked in by abarral, 8 weeks ago

Put comgeom.h, comgeom2.h into 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
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1! $Header$
2
3SUBROUTINE divgrad(klevel, h, lh, divgra)
4  USE lmdz_filtreg, ONLY: filtreg
5  USE lmdz_ssum_scopy, ONLY: scopy
6  USE lmdz_comdissipn, ONLY: tetaudiv, tetaurot, tetah, cdivu, crot, cdivh
7  USE lmdz_comgeom
8
9  IMPLICIT NONE
10  !
11  !=======================================================================
12  !
13  !  Auteur :   P. Le Van
14  !  ----------
15  !
16  !                          lh
17  !  calcul de  (div( grad ))   de h  .....
18  !  h  et lh  sont des arguments  d'entree pour le s-prog
19  !  divgra     est  un argument  de sortie pour le s-prog
20  !
21  !=======================================================================
22  !
23  !   declarations:
24  !   -------------
25  !
26  INCLUDE "dimensions.h"
27  INCLUDE "paramet.h"
28  !
29  INTEGER :: klevel
30  REAL :: h(ip1jmp1, klevel), divgra(ip1jmp1, klevel)
31  !
32  REAL :: ghy(ip1jm, llm), ghx(ip1jmp1, llm)
33
34  INTEGER :: l, ij, iter, lh
35  !
36  !
37  !
38  CALL SCOPY (ip1jmp1 * klevel, h, 1, divgra, 1)
39  !
40  DO iter = 1, lh
41
42    CALL filtreg (divgra, jjp1, klevel, 2, 1, .TRUE., 1)
43
44    CALL    grad (klevel, divgra, ghx, ghy)
45    CALL  diverg (klevel, ghx, ghy, divgra)
46
47    CALL filtreg (divgra, jjp1, klevel, 2, 1, .TRUE., 1)
48
49    DO l = 1, klevel
50      DO ij = 1, ip1jmp1
51        divgra(ij, l) = - cdivh * divgra(ij, l)
52      END DO
53    END DO
54    !
55  END DO
56  RETURN
57END SUBROUTINE divgrad
Note: See TracBrowser for help on using the repository browser.