source: trunk/LMDZ.COMMON/libf/dyn3d_common/grad.F @ 3493

Last change on this file since 3493 was 1300, checked in by emillour, 10 years ago

Common dynamics:
Some updates to keep up with LMDZ5 Earth model evolution (up to LMDZ5 rev 1955).
Main change is the introduction of a "dyn3d_common" directory
to store files common to dyn3d and dyn3dpar.
See file "DOC/chantiers/commit_importants.log" for detailed list
of changes. These changes do not change results on test cases.
EM

File size: 1.1 KB
Line 
1!
2! $Header$
3!
4      SUBROUTINE  grad(klevel, pg,pgx,pgy )
5c
6c      P. Le Van
7c
8c    ******************************************************************
9c     .. calcul des composantes covariantes en x et y du gradient de g
10c
11c    ******************************************************************
12c             pg        est un   argument  d'entree pour le s-prog
13c       pgx  et  pgy    sont des arguments de sortie pour le s-prog
14c
15      IMPLICIT NONE
16c
17#include "dimensions.h"
18#include "paramet.h"
19      INTEGER klevel
20      REAL  pg( ip1jmp1,klevel )
21      REAL pgx( ip1jmp1,klevel ) , pgy( ip1jm,klevel )
22      INTEGER  l,ij
23c
24c
25      DO 6 l = 1,klevel
26c
27      DO 2  ij = 1, ip1jmp1 - 1
28      pgx( ij,l ) = pg( ij +1,l ) - pg( ij,l )
29   2  CONTINUE
30c
31c    .... correction pour  pgx(ip1,j,l)  ....
32c    ...    pgx(iip1,j,l)= pgx(1,j,l)  ....
33CDIR$ IVDEP
34      DO 3  ij = iip1, ip1jmp1, iip1
35      pgx( ij,l ) = pgx( ij -iim,l )
36   3  CONTINUE
37c
38      DO 4 ij = 1,ip1jm
39      pgy( ij,l ) = pg( ij,l ) - pg( ij +iip1,l )
40   4  CONTINUE
41c
42   6  CONTINUE
43      RETURN
44      END
Note: See TracBrowser for help on using the repository browser.