| 1 | ! |
|---|
| 2 | ! $Header$ |
|---|
| 3 | ! |
|---|
| 4 | SUBROUTINE rotatf (klevel, x, y, rot ) |
|---|
| 5 | ! |
|---|
| 6 | ! Auteur : P.Le Van |
|---|
| 7 | !************************************************************** |
|---|
| 8 | !. calcule le rotationnel |
|---|
| 9 | ! a tous les niveaux d'1 vecteur de comp. x et y .. |
|---|
| 10 | ! x et y etant des composantes covariantes ... |
|---|
| 11 | ! Only difference with rotat: call to filtreg. |
|---|
| 12 | !******************************************************************** |
|---|
| 13 | ! klevel, x et y sont des arguments d'entree pour le s-prog |
|---|
| 14 | ! rot est un argument de sortie pour le s-prog |
|---|
| 15 | ! |
|---|
| 16 | USE comgeom_mod_h |
|---|
| 17 | USE dimensions_mod, ONLY: iim, jjm, llm, ndm |
|---|
| 18 | USE paramet_mod_h |
|---|
| 19 | IMPLICIT NONE |
|---|
| 20 | ! |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | ! |
|---|
| 24 | ! ..... variables en arguments ...... |
|---|
| 25 | ! |
|---|
| 26 | INTEGER :: klevel |
|---|
| 27 | REAL :: rot( ip1jm,klevel ) |
|---|
| 28 | REAL :: x( ip1jmp1,klevel ), y( ip1jm,klevel ) |
|---|
| 29 | ! |
|---|
| 30 | ! ... variables locales ... |
|---|
| 31 | ! |
|---|
| 32 | INTEGER :: l, ij |
|---|
| 33 | ! |
|---|
| 34 | ! |
|---|
| 35 | DO l = 1,klevel |
|---|
| 36 | ! |
|---|
| 37 | DO ij = 1, ip1jm - 1 |
|---|
| 38 | rot( ij,l ) = y( ij+1 , l ) - y( ij,l ) + & |
|---|
| 39 | x(ij +iip1, l ) - x( ij,l ) |
|---|
| 40 | ENDDO |
|---|
| 41 | ! |
|---|
| 42 | ! .... correction pour rot( iip1,j,l) .... |
|---|
| 43 | ! .... rot(iip1,j,l)= rot(1,j,l) ... |
|---|
| 44 | !DIR$ IVDEP |
|---|
| 45 | DO ij = iip1, ip1jm, iip1 |
|---|
| 46 | rot( ij,l ) = rot( ij -iim,l ) |
|---|
| 47 | ENDDO |
|---|
| 48 | ! |
|---|
| 49 | END DO |
|---|
| 50 | |
|---|
| 51 | CALL filtreg( rot, jjm, klevel, 2, 2, .FALSE., 1 ) |
|---|
| 52 | |
|---|
| 53 | DO l = 1, klevel |
|---|
| 54 | DO ij = 1, ip1jm |
|---|
| 55 | rot(ij,l) = rot(ij,l) * unsairez(ij) |
|---|
| 56 | ENDDO |
|---|
| 57 | ENDDO |
|---|
| 58 | ! |
|---|
| 59 | ! |
|---|
| 60 | RETURN |
|---|
| 61 | END SUBROUTINE rotatf |
|---|