source: LMDZ5/trunk/libf/dyn3dmem/rotat.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
File size: 1.4 KB
Line 
1!
2! $Header$
3!
4      SUBROUTINE rotat (klevel, x, y, rot )
5c
6c     Auteur : P.Le Van
7c**************************************************************
8c.  calcule le rotationnel
9c     a tous les niveaux d'1 vecteur de comp. x et y ..
10c       x  et  y etant des composantes  covariantes  ...
11c********************************************************************
12c   klevel, 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#include "dimensions.h"
18#include "paramet.h"
19#include "comgeom.h"
20c
21c   .....  variables en arguments  ......
22c
23      INTEGER klevel
24      REAL rot( ip1jm,klevel )
25      REAL x( ip1jmp1,klevel ), y( ip1jm,klevel )
26c
27c  ...   variables  locales  ...
28c
29      INTEGER  l, ij
30c
31c
32      DO  10 l = 1,klevel
33c
34        DO   ij = 1, ip1jm - 1
35         rot( ij,l )  =    y( ij+1 , l )  -  y( ij,l )   +
36     *                   x(ij +iip1, l )  -  x( ij,l ) 
37        ENDDO
38c
39c    .... correction pour rot( iip1,j,l)  ....
40c    ....   rot(iip1,j,l)= rot(1,j,l) ...
41CDIR$ IVDEP
42        DO  ij = iip1, ip1jm, iip1
43         rot( ij,l ) = rot( ij -iim,l )
44        ENDDO
45c
46  10  CONTINUE
47
48ccc        CALL filtreg( rot, jjm, klevel, 2, 2, .FALSE., 1 )
49     
50        DO l = 1, klevel
51          DO ij = 1, ip1jm
52           rot(ij,l) = rot(ij,l) * unsairez(ij)
53          ENDDO
54        ENDDO
55c
56c
57      RETURN
58      END
Note: See TracBrowser for help on using the repository browser.