source: LMDZ6/branches/Amaury_dev/libf/dyn3d_common/rotatf.f90 @ 5105

Last change on this file since 5105 was 5105, checked in by abarral, 8 weeks ago

Replace 1DUTILS.h by module lmdz_1dutils.f90
Replace 1DConv.h by module lmdz_old_1dconv.f90 (it's only used by old_* files)
Convert *.F to *.f90
Fix gradsdef.h formatting
Remove unnecessary "RETURN" at the end of functions/subroutines

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