| 1 | ! |
|---|
| 2 | ! $Header$ |
|---|
| 3 | ! |
|---|
| 4 | SUBROUTINE rotatst (klevel,x, y, rot ) |
|---|
| 5 | ! |
|---|
| 6 | ! P. Le Van |
|---|
| 7 | ! |
|---|
| 8 | ! ***************************************************************** |
|---|
| 9 | ! .. calcule le rotationnel a tous les niveaux d'1 vecteur de comp. x et y .. |
|---|
| 10 | ! x et y etant des composantes covariantes ..... |
|---|
| 11 | ! ***************************************************************** |
|---|
| 12 | ! x et y sont des arguments d'entree pour le s-prog |
|---|
| 13 | ! rot est un argument de sortie pour le s-prog |
|---|
| 14 | ! |
|---|
| 15 | USE dimensions_mod, ONLY: iim, jjm, llm, ndm |
|---|
| 16 | USE paramet_mod_h |
|---|
| 17 | IMPLICIT NONE |
|---|
| 18 | ! |
|---|
| 19 | INTEGER :: klevel |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | REAL :: rot( ip1jm,klevel ) |
|---|
| 24 | REAL :: x( ip1jmp1,klevel ), y( ip1jm,klevel ) |
|---|
| 25 | INTEGER :: l, ij |
|---|
| 26 | ! |
|---|
| 27 | ! |
|---|
| 28 | DO l = 1,klevel |
|---|
| 29 | ! |
|---|
| 30 | DO ij = 1, ip1jm - 1 |
|---|
| 31 | rot( ij,l ) = ( y( ij+1 , l ) - y( ij,l ) + & |
|---|
| 32 | x(ij +iip1, l ) - x( ij,l ) ) |
|---|
| 33 | END DO |
|---|
| 34 | ! |
|---|
| 35 | ! .... correction pour rot( iip1,j,l) .... |
|---|
| 36 | ! |
|---|
| 37 | ! .... rot(iip1,j,l)= rot(1,j,l) ... |
|---|
| 38 | !DIR$ IVDEP |
|---|
| 39 | DO ij = iip1, ip1jm, iip1 |
|---|
| 40 | rot( ij,l ) = rot( ij -iim,l ) |
|---|
| 41 | END DO |
|---|
| 42 | ! |
|---|
| 43 | END DO |
|---|
| 44 | RETURN |
|---|
| 45 | END SUBROUTINE rotatst |
|---|