Last change
on this file since 5444 was
2,
checked in by lmdz, 25 years ago
|
Initial revision
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.0 KB
|
Rev | Line | |
---|
[2] | 1 | SUBROUTINE grad(klevel, pg,pgx,pgy ) |
---|
| 2 | c |
---|
| 3 | c P. Le Van |
---|
| 4 | c |
---|
| 5 | c ****************************************************************** |
---|
| 6 | c .. calcul des composantes covariantes en x et y du gradient de g |
---|
| 7 | c |
---|
| 8 | c ****************************************************************** |
---|
| 9 | c pg est un argument d'entree pour le s-prog |
---|
| 10 | c pgx et pgy sont des arguments de sortie pour le s-prog |
---|
| 11 | c |
---|
| 12 | IMPLICIT NONE |
---|
| 13 | c |
---|
| 14 | #include "dimensions.h" |
---|
| 15 | #include "paramet.h" |
---|
| 16 | INTEGER klevel |
---|
| 17 | REAL pg( ip1jmp1,klevel ) |
---|
| 18 | REAL pgx( ip1jmp1,klevel ) , pgy( ip1jm,klevel ) |
---|
| 19 | INTEGER l,ij |
---|
| 20 | c |
---|
| 21 | c |
---|
| 22 | DO 6 l = 1,klevel |
---|
| 23 | c |
---|
| 24 | DO 2 ij = 1, ip1jmp1 - 1 |
---|
| 25 | pgx( ij,l ) = pg( ij +1,l ) - pg( ij,l ) |
---|
| 26 | 2 CONTINUE |
---|
| 27 | c |
---|
| 28 | c .... correction pour pgx(ip1,j,l) .... |
---|
| 29 | c ... pgx(iip1,j,l)= pgx(1,j,l) .... |
---|
| 30 | CDIR$ IVDEP |
---|
| 31 | DO 3 ij = iip1, ip1jmp1, iip1 |
---|
| 32 | pgx( ij,l ) = pgx( ij -iim,l ) |
---|
| 33 | 3 CONTINUE |
---|
| 34 | c |
---|
| 35 | DO 4 ij = 1,ip1jm |
---|
| 36 | pgy( ij,l ) = pg( ij,l ) - pg( ij +iip1,l ) |
---|
| 37 | 4 CONTINUE |
---|
| 38 | c |
---|
| 39 | 6 CONTINUE |
---|
| 40 | RETURN |
---|
| 41 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.