source: LMDZ6/branches/Amaury_dev/libf/dyn3d_common/rotatf.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.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  USE lmdz_filtreg, ONLY: filtreg
17  IMPLICIT NONE
18  !
19  INCLUDE "dimensions.h"
20  INCLUDE "paramet.h"
21  INCLUDE "comgeom.h"
22  !
23  !   .....  variables en arguments  ......
24  !
25  INTEGER :: klevel
26  REAL :: rot( ip1jm,klevel )
27  REAL :: x( ip1jmp1,klevel ), y( ip1jm,klevel )
28  !
29  !  ...   variables  locales  ...
30  !
31  INTEGER :: l, ij
32  !
33  !
34  DO  l = 1,klevel
35  !
36    DO   ij = 1, ip1jm - 1
37     rot( ij,l )  =    y( ij+1 , l )  -  y( ij,l )   + &
38           x(ij +iip1, l )  -  x( ij,l )
39    ENDDO
40  !
41  !    .... correction pour rot( iip1,j,l)  ....
42  !    ....   rot(iip1,j,l)= rot(1,j,l) ...
43  !DIR$ IVDEP
44    DO  ij = iip1, ip1jm, iip1
45     rot( ij,l ) = rot( ij -iim,l )
46    ENDDO
47  !
48  END DO
49
50    CALL filtreg( rot, jjm, klevel, 2, 2, .FALSE., 1 )
51
52    DO l = 1, klevel
53      DO ij = 1, ip1jm
54       rot(ij,l) = rot(ij,l) * unsairez(ij)
55      ENDDO
56    ENDDO
57  !
58  !
59  RETURN
60END SUBROUTINE rotatf
Note: See TracBrowser for help on using the repository browser.