source: LMDZ6/branches/Amaury_dev/libf/dyn3d_common/rotat_nfil.f90

Last change on this file was 5159, checked in by abarral, 7 weeks ago

Put dimensions.h and paramet.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
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.2 KB
RevLine 
[5099]1
[524]2! $Header$
[5099]3
[5106]4SUBROUTINE rotat_nfil(klevel, x, y, rot )
[5159]5
[5105]6  !    Auteur :   P.Le Van
7  !**************************************************************
8  !.          Calcule le rotationnel  non filtre   ,
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
[5159]14
[5136]15  USE lmdz_comgeom
16
[5159]17USE lmdz_dimensions, ONLY: iim, jjm, llm, ndm
18  USE lmdz_paramet
[5105]19  IMPLICIT NONE
20  !
[5159]21
22
23
[5105]24  !   .....  variables en arguments  ......
[5159]25
[5105]26  INTEGER :: klevel
27  REAL :: rot( ip1jm,klevel )
28  REAL :: x( ip1jmp1,klevel ), y( ip1jm,klevel )
[5159]29
[5105]30  !  ...   variables  locales  ...
[5159]31
[5105]32  INTEGER :: l, ij
[5159]33
34
[5105]35  DO  l = 1,klevel
[5159]36
[5105]37    DO   ij = 1, ip1jm - 1
38     rot( ij,l )  =    y( ij+1 , l )  -  y( ij,l )   + &
39           x(ij +iip1, l )  -  x( ij,l )
40    ENDDO
[5159]41
[5105]42  !    .... correction pour rot( iip1,j,l)  ....
43  !    ....   rot(iip1,j,l)= rot(1,j,l) ...
44  !DIR$ IVDEP
45    DO  ij = iip1, ip1jm, iip1
46     rot( ij,l ) = rot( ij -iim,l )
47    ENDDO
[5159]48
[5105]49  END DO
[524]50
[5105]51  RETURN
52END SUBROUTINE rotat_nfil
Note: See TracBrowser for help on using the repository browser.