Last change
on this file since 5097 was
5086,
checked in by abarral, 2 months ago
|
convert labeled do (f77) to do .. end do
|
-
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.0 KB
|
Rev | Line | |
---|
[524] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
| 4 | SUBROUTINE grad(klevel, pg,pgx,pgy ) |
---|
| 5 | c |
---|
| 6 | c P. Le Van |
---|
| 7 | c |
---|
| 8 | c ****************************************************************** |
---|
| 9 | c .. calcul des composantes covariantes en x et y du gradient de g |
---|
| 10 | c |
---|
| 11 | c ****************************************************************** |
---|
| 12 | c pg est un argument d'entree pour le s-prog |
---|
| 13 | c pgx et pgy sont des arguments de sortie pour le s-prog |
---|
| 14 | c |
---|
| 15 | IMPLICIT NONE |
---|
| 16 | c |
---|
[4593] | 17 | INCLUDE "dimensions.h" |
---|
| 18 | INCLUDE "paramet.h" |
---|
[524] | 19 | INTEGER klevel |
---|
| 20 | REAL pg( ip1jmp1,klevel ) |
---|
| 21 | REAL pgx( ip1jmp1,klevel ) , pgy( ip1jm,klevel ) |
---|
| 22 | INTEGER l,ij |
---|
| 23 | c |
---|
| 24 | c |
---|
[5086] | 25 | DO l = 1,klevel |
---|
[524] | 26 | c |
---|
[5086] | 27 | DO ij = 1, ip1jmp1 - 1 |
---|
[524] | 28 | pgx( ij,l ) = pg( ij +1,l ) - pg( ij,l ) |
---|
[5086] | 29 | END DO |
---|
[524] | 30 | c |
---|
| 31 | c .... correction pour pgx(ip1,j,l) .... |
---|
| 32 | c ... pgx(iip1,j,l)= pgx(1,j,l) .... |
---|
| 33 | CDIR$ IVDEP |
---|
[5086] | 34 | DO ij = iip1, ip1jmp1, iip1 |
---|
[524] | 35 | pgx( ij,l ) = pgx( ij -iim,l ) |
---|
[5086] | 36 | END DO |
---|
[524] | 37 | c |
---|
[5086] | 38 | DO ij = 1,ip1jm |
---|
[524] | 39 | pgy( ij,l ) = pg( ij,l ) - pg( ij +iip1,l ) |
---|
[5086] | 40 | END DO |
---|
[524] | 41 | c |
---|
[5086] | 42 | END DO |
---|
[524] | 43 | RETURN |
---|
| 44 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.