source: LMDZ5/trunk/libf/dyn3d/gradiv.F @ 1907

Last change on this file since 1907 was 1907, checked in by lguez, 10 years ago

Added a copyright property to every file of the distribution, except
for the fcm files (which have their own copyright). Use svn propget on
a file to see the copyright. For instance:

$ svn propget copyright libf/phylmd/physiq.F90
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

Also added the files defining the CeCILL version 2 license, in French
and English, at the top of the LMDZ tree.

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