source: LMDZ6/trunk/libf/dyn3d_common/gradiv.f90 @ 5403

Last change on this file since 5403 was 5285, checked in by abarral, 7 weeks ago

As discussed internally, remove generic ONLY: ... for new _mod_h 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
RevLine 
[524]1!
2! $Header$
3!
[5246]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  !
[5280]19  USE comdissipn_mod_h
[5271]20  USE dimensions_mod, ONLY: iim, jjm, llm, ndm
[5285]21USE paramet_mod_h
[5271]22IMPLICIT NONE
[5246]23  !
[5271]24
[5272]25
[524]26
[5246]27  INTEGER :: klevel
28  !
29  REAL :: xcov( ip1jmp1,klevel ), ycov( ip1jm,klevel )
30  REAL :: gdx( ip1jmp1,klevel ),   gdy( ip1jm,klevel )
[524]31
[5246]32  REAL :: div(ip1jmp1,llm)
[524]33
[5246]34  INTEGER :: l,ij,iter,ld
35  !
36  !
37  !
38  CALL SCOPY( ip1jmp1*klevel,xcov,1,gdx,1 )
39  CALL SCOPY( ip1jm*klevel,  ycov,1,gdy,1 )
40  !
41  DO iter = 1,ld
42  !
43  CALL  diverg( klevel,  gdx , gdy, div          )
44  CALL filtreg( div, jjp1, klevel, 2,1, .true.,2 )
45  CALL    grad( klevel,  div, gdx, gdy           )
46  !
47  DO  l = 1, klevel
48  DO ij = 1, ip1jmp1
49  gdx( ij,l ) = - gdx( ij,l ) * cdivu
50  END DO
51  DO ij = 1, ip1jm
52  gdy( ij,l ) = - gdy( ij,l ) * cdivu
53  END DO
54  END DO
55  !
56  END DO
57  RETURN
58END SUBROUTINE gradiv
Note: See TracBrowser for help on using the repository browser.