source:
trunk/mars/libf/dyn3d/rotatst.F
@
77
Last change on this file since 77 was 38, checked in by , 14 years ago | |
---|---|
File size: 1.1 KB |
Line | |
---|---|
1 | SUBROUTINE rotatst (klevel,x, y, rot ) |
2 | c |
3 | c P. Le Van |
4 | c |
5 | c ***************************************************************** |
6 | c .. calcule le rotationnel a tous les niveaux d'1 vecteur de comp. x et y .. |
7 | c x et y etant des composantes covariantes ..... |
8 | c ***************************************************************** |
9 | c x et y sont des arguments d'entree pour le s-prog |
10 | c rot est un argument de sortie pour le s-prog |
11 | c |
12 | IMPLICIT NONE |
13 | c |
14 | INTEGER klevel |
15 | #include "dimensions.h" |
16 | #include "paramet.h" |
17 | |
18 | REAL rot( ip1jm,klevel ) |
19 | REAL x( ip1jmp1,klevel ), y( ip1jm,klevel ) |
20 | INTEGER l, ij |
21 | c |
22 | c |
23 | DO 5 l = 1,klevel |
24 | c |
25 | DO 1 ij = 1, ip1jm - 1 |
26 | rot( ij,l ) = ( y( ij+1 , l ) - y( ij,l ) + |
27 | * x(ij +iip1, l ) - x( ij,l ) ) |
28 | 1 CONTINUE |
29 | c |
30 | c .... correction pour rot( iip1,j,l) .... |
31 | c |
32 | c .... rot(iip1,j,l)= rot(1,j,l) ... |
33 | CDIR$ IVDEP |
34 | DO 2 ij = iip1, ip1jm, iip1 |
35 | rot( ij,l ) = rot( ij -iim,l ) |
36 | 2 CONTINUE |
37 | c |
38 | 5 CONTINUE |
39 | RETURN |
40 | END |
Note: See TracBrowser
for help on using the repository browser.