[524] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
[5246] | 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 | ! |
---|
[5271] | 15 | USE dimensions_mod, ONLY: iim, jjm, llm, ndm |
---|
[5272] | 16 | USE paramet_mod_h, ONLY: iip1, iip2, iip3, jjp1, llmp1, llmp2, llmm1, kftd, ip1jm, ip1jmp1, & |
---|
| 17 | ip1jmi1, ijp1llm, ijmllm, mvar, jcfil, jcfllm |
---|
[5271] | 18 | IMPLICIT NONE |
---|
[5246] | 19 | ! |
---|
| 20 | INTEGER :: klevel |
---|
[5271] | 21 | |
---|
[524] | 22 | |
---|
[5272] | 23 | |
---|
[5246] | 24 | REAL :: rot( ip1jm,klevel ) |
---|
| 25 | REAL :: x( ip1jmp1,klevel ), y( ip1jm,klevel ) |
---|
| 26 | INTEGER :: l, ij |
---|
| 27 | ! |
---|
| 28 | ! |
---|
| 29 | DO l = 1,klevel |
---|
| 30 | ! |
---|
| 31 | DO ij = 1, ip1jm - 1 |
---|
| 32 | rot( ij,l ) = ( y( ij+1 , l ) - y( ij,l ) + & |
---|
| 33 | x(ij +iip1, l ) - x( ij,l ) ) |
---|
| 34 | END DO |
---|
| 35 | ! |
---|
| 36 | ! .... correction pour rot( iip1,j,l) .... |
---|
| 37 | ! |
---|
| 38 | ! .... rot(iip1,j,l)= rot(1,j,l) ... |
---|
| 39 | !DIR$ IVDEP |
---|
| 40 | DO ij = iip1, ip1jm, iip1 |
---|
| 41 | rot( ij,l ) = rot( ij -iim,l ) |
---|
| 42 | END DO |
---|
| 43 | ! |
---|
| 44 | END DO |
---|
| 45 | RETURN |
---|
| 46 | END SUBROUTINE rotatst |
---|