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

Last change on this file since 5122 was 5119, checked in by abarral, 4 months ago

enforce PRIVATE by default in several modules, expose PUBLIC as needed
move eigen.f90 to obsolete/
(lint) aslong the way

  • 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  IMPLICIT NONE
7  !
8  !=======================================================================
9  !
10  !  Auteur :   P. Le Van
11  !  ----------
12  !
13  !                          lh
14  !  calcul de  (div( grad ))   de h  .....
15  !  h  et lh  sont des arguments  d'entree pour le s-prog
16  !  divgra     est  un argument  de sortie pour le s-prog
17  !
18  !=======================================================================
19  !
20  !   declarations:
21  !   -------------
22  !
23  include "dimensions.h"
24  include "paramet.h"
25  include "comgeom.h"
26  include "comdissipn.h"
27  !
28  INTEGER :: klevel
29  REAL :: h(ip1jmp1, klevel), divgra(ip1jmp1, klevel)
30  !
31  REAL :: ghy(ip1jm, llm), ghx(ip1jmp1, llm)
32
33  INTEGER :: l, ij, iter, lh
34  !
35  !
36  !
37  CALL SCOPY (ip1jmp1 * klevel, h, 1, divgra, 1)
38  !
39  DO iter = 1, lh
40
41    CALL filtreg (divgra, jjp1, klevel, 2, 1, .TRUE., 1)
42
43    CALL    grad (klevel, divgra, ghx, ghy)
44    CALL  diverg (klevel, ghx, ghy, divgra)
45
46    CALL filtreg (divgra, jjp1, klevel, 2, 1, .TRUE., 1)
47
48    DO l = 1, klevel
49      DO ij = 1, ip1jmp1
50        divgra(ij, l) = - cdivh * divgra(ij, l)
51      END DO
52    END DO
53    !
54  END DO
55  RETURN
56END SUBROUTINE divgrad
Note: See TracBrowser for help on using the repository browser.