source: LMDZ.3.3/branches/rel-LF/libf/dyn3d/rotatf.F @ 462

Last change on this file since 462 was 2, checked in by lmdz, 25 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1      SUBROUTINE rotatf (klevel, x, y, rot )
2c
3c     Auteur : P.Le Van
4c**************************************************************
5c.  calcule le rotationnel
6c     a tous les niveaux d'1 vecteur de comp. x et y ..
7c       x  et  y etant des composantes  covariantes  ...
8c********************************************************************
9c   klevel, x  et y   sont des arguments d'entree pour le s-prog
10c        rot          est  un argument  de sortie pour le s-prog
11c
12      IMPLICIT NONE
13c
14#include "dimensions.h"
15#include "paramet.h"
16#include "comgeom.h"
17c
18c   .....  variables en arguments  ......
19c
20      INTEGER klevel
21      REAL rot( ip1jm,klevel )
22      REAL x( ip1jmp1,klevel ), y( ip1jm,klevel )
23c
24c  ...   variables  locales  ...
25c
26      INTEGER  l, ij
27c
28c
29      DO  10 l = 1,klevel
30c
31        DO   ij = 1, ip1jm - 1
32         rot( ij,l )  =    y( ij+1 , l )  -  y( ij,l )   +
33     *                   x(ij +iip1, l )  -  x( ij,l ) 
34        ENDDO
35c
36c    .... correction pour rot( iip1,j,l)  ....
37c    ....   rot(iip1,j,l)= rot(1,j,l) ...
38CDIR$ IVDEP
39        DO  ij = iip1, ip1jm, iip1
40         rot( ij,l ) = rot( ij -iim,l )
41        ENDDO
42c
43  10  CONTINUE
44
45        CALL filtreg( rot, jjm, klevel, 2, 2, .FALSE., 1 )
46     
47        DO l = 1, klevel
48          DO ij = 1, ip1jm
49           rot(ij,l) = rot(ij,l) * unsairez(ij)
50          ENDDO
51        ENDDO
52c
53c
54      RETURN
55      END
Note: See TracBrowser for help on using the repository browser.