source: LMDZ6/branches/Amaury_dev/libf/dyn3dmem/rotatf_loc.f90 @ 5136

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

Put comgeom.h, comgeom2.h into modules

  • 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
File size: 1.7 KB
Line 
1SUBROUTINE rotatf_loc(klevel, x, y, rot )
2  !
3  ! Auteur : P.Le Van
4  !**************************************************************
5  !.  calcule le rotationnel
6  ! a tous les niveaux d'1 vecteur de comp. x et y ..
7  !   x  et  y etant des composantes  covariantes  ...
8  !********************************************************************
9  !   klevel, x  et y   sont des arguments d'entree pour le s-prog
10  !        rot          est  un argument  de sortie pour le s-prog
11  !
12  USE parallel_lmdz
13  USE lmdz_filtreg_p
14  USE lmdz_comgeom
15
16  IMPLICIT NONE
17  !
18  INCLUDE "dimensions.h"
19  INCLUDE "paramet.h"
20  !
21  !   .....  variables en arguments  ......
22  !
23  INTEGER :: klevel
24  REAL :: rot( ijb_v:ije_v,klevel )
25  REAL :: x( ijb_u:ije_u,klevel ), y( ijb_v:ije_v,klevel )
26  !
27  !  ...   variables  locales  ...
28  !
29  INTEGER :: l, ij
30  INTEGER :: ijb,ije,jjb,jje
31  !
32  !
33  ijb=ij_begin
34  ije=ij_end
35  IF(pole_sud) ije=ij_end-iip1
36
37!$OMP DO SCHEDULE(STATIC,OMP_CHUNK)
38  DO  l = 1,klevel
39  !
40    DO   ij = ijb, ije - 1
41     rot( ij,l )  =    y( ij+1 , l )  -  y( ij,l )   + &
42           x(ij +iip1, l )  -  x( ij,l )
43    ENDDO
44  !
45  !    .... correction pour rot( iip1,j,l)  ....
46  !    ....   rot(iip1,j,l)= rot(1,j,l) ...
47  !DIR$ IVDEP
48    DO  ij = ijb+iip1-1, ije, iip1
49     rot( ij,l ) = rot( ij -iim,l )
50    ENDDO
51  !
52  END DO
53!$OMP END DO NOWAIT
54    jjb=jj_begin
55    jje=jj_end
56    IF (pole_sud) jje=jj_end-1
57    CALL filtreg_p( rot, jjb_v, jje_v,jjb,jje,jjm, &
58          klevel, 2, 2, .FALSE., 1 )
59
60!$OMP DO SCHEDULE(STATIC,OMP_CHUNK)
61    DO l = 1, klevel
62      DO ij = ijb, ije
63       rot(ij,l) = rot(ij,l) * unsairez(ij)
64      ENDDO
65    ENDDO
66!$OMP END DO NOWAIT
67  !
68  !
69
70END SUBROUTINE rotatf_loc
Note: See TracBrowser for help on using the repository browser.