source: LMDZ6/trunk/libf/dyn3d_common/rotatst.f90 @ 5271

Last change on this file since 5271 was 5271, checked in by abarral, 24 hours ago

Move dimensions.h into a module
Nb: doesn't compile yet

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1!
2! $Header$
3!
4SUBROUTINE 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
16IMPLICIT NONE
17  !
18  INTEGER :: klevel
19
20  INCLUDE "paramet.h"
21
22  REAL :: rot( ip1jm,klevel )
23  REAL :: x( ip1jmp1,klevel ), y( ip1jm,klevel )
24  INTEGER :: l, ij
25  !
26  !
27  DO l = 1,klevel
28  !
29  DO ij = 1, ip1jm - 1
30  rot( ij,l )  =  (  y( ij+1 , l )  -  y( ij,l )   + &
31        x(ij +iip1, l )  -  x( ij,l )  )
32  END DO
33  !
34  !    .... correction pour rot( iip1,j,l)  ....
35  !
36  !    ....   rot(iip1,j,l)= rot(1,j,l) ...
37  !DIR$ IVDEP
38  DO ij = iip1, ip1jm, iip1
39  rot( ij,l ) = rot( ij -iim,l )
40  END DO
41  !
42  END DO
43  RETURN
44END SUBROUTINE rotatst
Note: See TracBrowser for help on using the repository browser.