source: LMDZ6/branches/Amaury_dev/libf/dyn3d_common/divgrad.F @ 5099

Last change on this file since 5099 was 5099, checked in by abarral, 2 months ago

Replace most uses of CPP_DUST by the corresponding logical defined in lmdz_cppkeys_wrapper.F90
Convert several files from .F to .f90 to allow Dust to compile w/o rrtm/ecrad
Create lmdz_yoerad.f90
(lint) Remove "!" on otherwise empty line

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