Last change
on this file since 5416 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.2 KB
|
Rev | Line | |
---|
[2] | 1 | SUBROUTINE nxgrad_gam( klevel, rot, x, y ) |
---|
| 2 | c |
---|
| 3 | c P. Le Van |
---|
| 4 | c |
---|
| 5 | c ******************************************************************** |
---|
| 6 | c calcul du gradient tourne de pi/2 du rotationnel du vect.v |
---|
| 7 | c ******************************************************************** |
---|
| 8 | c rot est un argument d'entree pour le s-prog |
---|
| 9 | c x et y sont des arguments de sortie pour le s-prog |
---|
| 10 | c |
---|
| 11 | IMPLICIT NONE |
---|
| 12 | c |
---|
| 13 | #include "dimensions.h" |
---|
| 14 | #include "paramet.h" |
---|
| 15 | #include "comgeom.h" |
---|
| 16 | INTEGER klevel |
---|
| 17 | REAL rot( ip1jm,klevel ),x( ip1jmp1,klevel ),y(ip1jm,klevel ) |
---|
| 18 | INTEGER l,ij |
---|
| 19 | integer ismin,ismax |
---|
| 20 | external ismin,ismax |
---|
| 21 | c |
---|
| 22 | DO 10 l = 1,klevel |
---|
| 23 | c |
---|
| 24 | DO 1 ij = 2, ip1jm |
---|
| 25 | y( ij,l ) = (rot( ij,l ) - rot( ij-1,l )) * cvscuvgam( ij ) |
---|
| 26 | 1 CONTINUE |
---|
| 27 | c |
---|
| 28 | c ..... correction pour y ( 1,j,l ) ...... |
---|
| 29 | c |
---|
| 30 | c .... y(1,j,l)= y(iip1,j,l) .... |
---|
| 31 | CDIR$ IVDEP |
---|
| 32 | DO 2 ij = 1, ip1jm, iip1 |
---|
| 33 | y( ij,l ) = y( ij +iim,l ) |
---|
| 34 | 2 CONTINUE |
---|
| 35 | c |
---|
| 36 | DO 4 ij = iip2,ip1jm |
---|
| 37 | x( ij,l ) = (rot( ij,l ) - rot( ij -iip1,l )) * cuscvugam( ij ) |
---|
| 38 | 4 CONTINUE |
---|
| 39 | DO 6 ij = 1,iip1 |
---|
| 40 | x( ij ,l ) = 0. |
---|
| 41 | x( ij +ip1jm,l ) = 0. |
---|
| 42 | 6 CONTINUE |
---|
| 43 | c |
---|
| 44 | 10 CONTINUE |
---|
| 45 | RETURN |
---|
| 46 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.