! $Header$ SUBROUTINE rotatst(klevel,x, y, rot ) ! ! P. Le Van ! ! ***************************************************************** ! .. calcule le rotationnel a tous les niveaux d'1 vecteur de comp. x et y .. ! x et y etant des composantes covariantes ..... ! ***************************************************************** ! x et y sont des arguments d'entree pour le s-prog ! rot est un argument de sortie pour le s-prog ! IMPLICIT NONE ! INTEGER :: klevel INCLUDE "dimensions.h" INCLUDE "paramet.h" REAL :: rot( ip1jm,klevel ) REAL :: x( ip1jmp1,klevel ), y( ip1jm,klevel ) INTEGER :: l, ij ! ! DO l = 1,klevel ! DO ij = 1, ip1jm - 1 rot( ij,l ) = ( y( ij+1 , l ) - y( ij,l ) + & x(ij +iip1, l ) - x( ij,l ) ) END DO ! ! .... correction pour rot( iip1,j,l) .... ! ! .... rot(iip1,j,l)= rot(1,j,l) ... !DIR$ IVDEP DO ij = iip1, ip1jm, iip1 rot( ij,l ) = rot( ij -iim,l ) END DO ! END DO RETURN END SUBROUTINE rotatst