rotatst.f90 Source File


This file depends on

sourcefile~~rotatst.f90~~EfferentGraph sourcefile~rotatst.f90 rotatst.f90 sourcefile~paramet_mod_h.f90 paramet_mod_h.f90 sourcefile~rotatst.f90->sourcefile~paramet_mod_h.f90

Contents

Source Code


Source Code

!
! $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
  !
  USE dimensions_mod, ONLY: iim, jjm, llm, ndm
USE paramet_mod_h
IMPLICIT NONE
  !
  INTEGER :: klevel



  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