source: LMDZ6/branches/Amaury_dev/libf/dyn3d_common/gradiv.f90 @ 5114

Last change on this file since 5114 was 5106, checked in by abarral, 4 months ago

Turn coefils.h into lmdz_coefils.f90
Put filtreg.F90 inside lmdz_filtreg.F90
Turn mod_filtreg_p.F90 into lmdz_filtreg_p.F90
Delete obsolete parafilt.h*
(lint) remove spaces between routine name and args

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