source: LMDZ6/branches/Amaury_dev/libf/dyn3d_common/rotat.f90 @ 5106

Last change on this file since 5106 was 5106, checked in by abarral, 2 months ago

Turn coefils.h into lmdz_coefils.f90
Put filtreg.F90 inside lmdz_filtreg.F90
Turn mod_filtreg_p.F90 into lmdz_filtreg_p.F90
Delete obsolete parafilt.h*
(lint) remove spaces between routine name and args

  • 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.3 KB
Line 
1
2! $Header$
3
4SUBROUTINE rotat(klevel, x, y, rot )
5  !
6  ! Auteur : P.Le Van
7  !**************************************************************
8  !.  calcule le rotationnel
9  ! a tous les niveaux d'1 vecteur de comp. x et y ..
10  !   x  et  y etant des composantes  covariantes  ...
11  !********************************************************************
12  !   klevel, 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  IMPLICIT NONE
16  !
17  INCLUDE "dimensions.h"
18  INCLUDE "paramet.h"
19  INCLUDE "comgeom.h"
20  !
21  !   .....  variables en arguments  ......
22  !
23  INTEGER :: klevel
24  REAL :: rot( ip1jm,klevel )
25  REAL :: x( ip1jmp1,klevel ), y( ip1jm,klevel )
26  !
27  !  ...   variables  locales  ...
28  !
29  INTEGER :: l, ij
30  !
31  !
32  DO  l = 1,klevel
33  !
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
38  !
39  !    .... correction pour rot( iip1,j,l)  ....
40  !    ....   rot(iip1,j,l)= rot(1,j,l) ...
41  !DIR$ IVDEP
42    DO  ij = iip1, ip1jm, iip1
43     rot( ij,l ) = rot( ij -iim,l )
44    ENDDO
45  !
46  END DO
47
48  !cc        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
55  !
56  !
57  RETURN
58END SUBROUTINE rotat
Note: See TracBrowser for help on using the repository browser.