source: LMDZ6/trunk/libf/dyn3d_common/rotatf.F @ 3924

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

Files in dyn3d_common use files in bibio and vice-versa. So, for
compilation with makelmdz, we add a reference to dyn3d_comm at link
time.

Removed dyn3dmem/nxgrarot_p.F which was identical to
/dyn3dpar/nxgrarot_p.F but not used in dyn3dmem configuration.

  • 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.4 KB
Line 
1!
2! $Header$
3!
4      SUBROUTINE rotatf (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     Only difference with rotat: call to filtreg.
12c********************************************************************
13c   klevel, x  et y   sont des arguments d'entree pour le s-prog
14c        rot          est  un argument  de sortie pour le s-prog
15c
16      IMPLICIT NONE
17c
18#include "dimensions.h"
19#include "paramet.h"
20#include "comgeom.h"
21c
22c   .....  variables en arguments  ......
23c
24      INTEGER klevel
25      REAL rot( ip1jm,klevel )
26      REAL x( ip1jmp1,klevel ), y( ip1jm,klevel )
27c
28c  ...   variables  locales  ...
29c
30      INTEGER  l, ij
31c
32c
33      DO  10 l = 1,klevel
34c
35        DO   ij = 1, ip1jm - 1
36         rot( ij,l )  =    y( ij+1 , l )  -  y( ij,l )   +
37     *                   x(ij +iip1, l )  -  x( ij,l ) 
38        ENDDO
39c
40c    .... correction pour rot( iip1,j,l)  ....
41c    ....   rot(iip1,j,l)= rot(1,j,l) ...
42CDIR$ IVDEP
43        DO  ij = iip1, ip1jm, iip1
44         rot( ij,l ) = rot( ij -iim,l )
45        ENDDO
46c
47  10  CONTINUE
48
49        CALL filtreg( rot, jjm, klevel, 2, 2, .FALSE., 1 )
50     
51        DO l = 1, klevel
52          DO ij = 1, ip1jm
53           rot(ij,l) = rot(ij,l) * unsairez(ij)
54          ENDDO
55        ENDDO
56c
57c
58      RETURN
59      END
Note: See TracBrowser for help on using the repository browser.