source: LMDZ5/trunk/libf/dyn3d/rotatst.F @ 1907

Last change on this file since 1907 was 1907, checked in by lguez, 10 years ago

Added a copyright property to every file of the distribution, except
for the fcm files (which have their own copyright). Use svn propget on
a file to see the copyright. For instance:

$ svn propget copyright libf/phylmd/physiq.F90
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

Also added the files defining the CeCILL version 2 license, in French
and English, at the top of the LMDZ tree.

  • 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!
4      SUBROUTINE rotatst (klevel,x, y, rot )
5c
6c  P. Le Van
7c
8c    *****************************************************************
9c     .. calcule le rotationnel a tous les niveaux d'1 vecteur de comp. x et y ..
10c         x  et  y etant des composantes  covariantes  .....
11c    *****************************************************************
12c        x  et y     sont des arguments d'entree pour le s-prog
13c        rot          est  un argument  de sortie pour le s-prog
14c
15      IMPLICIT NONE
16c
17      INTEGER klevel
18#include "dimensions.h"
19#include "paramet.h"
20
21      REAL rot( ip1jm,klevel )
22      REAL x( ip1jmp1,klevel ), y( ip1jm,klevel )
23      INTEGER  l, ij
24c
25c
26      DO 5 l = 1,klevel
27c
28      DO 1 ij = 1, ip1jm - 1
29      rot( ij,l )  =  (  y( ij+1 , l )  -  y( ij,l )   +
30     *                 x(ij +iip1, l )  -  x( ij,l )  )
31   1  CONTINUE
32c
33c    .... correction pour rot( iip1,j,l)  ....
34c
35c    ....   rot(iip1,j,l)= rot(1,j,l) ...
36CDIR$ IVDEP
37      DO 2 ij = iip1, ip1jm, iip1
38      rot( ij,l ) = rot( ij -iim,l )
39   2  CONTINUE
40c
41   5  CONTINUE
42      RETURN
43      END
Note: See TracBrowser for help on using the repository browser.