source: LMDZ6/branches/Amaury_dev/libf/dyn3d_common/nxgrarot.f90 @ 5114

Last change on this file since 5114 was 5106, checked in by abarral, 4 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 nxgrarot(klevel,xcov, ycov, lr, grx, gry )
5  !   ***********************************************************
6  !
7  !    Auteur :  P.Le Van
8  !
9  !                             lr
10  !  calcul de  ( nXgrad (rot) )   du vect. v  ....
11  !
12  !   xcov et ycov  etant les compos. covariantes de  v
13  !   ***********************************************************
14  ! xcov , ycov et lr  sont des arguments  d'entree pour le s-prog
15  !  grx   et  gry     sont des arguments de sortie pour le s-prog
16  !
17  !
18  USE lmdz_filtreg, ONLY: filtreg
19  IMPLICIT NONE
20  !
21  !
22  include "dimensions.h"
23  include "paramet.h"
24  include "comdissipn.h"
25  !
26  INTEGER :: klevel
27  REAL :: xcov( ip1jmp1,klevel ), ycov( ip1jm,klevel )
28  REAL :: grx( ip1jmp1,klevel ),  gry( ip1jm,klevel )
29  !
30  REAL :: rot(ip1jm,llm)
31
32  INTEGER :: l,ij,iter,lr
33  !
34  !
35  !
36  CALL SCOPY ( ip1jmp1*klevel, xcov, 1, grx, 1 )
37  CALL SCOPY (  ip1jm*klevel, ycov, 1, gry, 1 )
38  !
39  DO iter = 1,lr
40  CALL  rotat (klevel,grx, gry, rot )
41  CALL filtreg( rot, jjm, klevel, 2,1, .FALSE.,2)
42  CALL nxgrad (klevel,rot, grx, gry )
43  !
44  DO l = 1, klevel
45  DO ij = 1, ip1jm
46  gry( ij,l ) = - gry( ij,l ) * crot
47  END DO
48  DO ij = 1, ip1jmp1
49  grx( ij,l ) = - grx( ij,l ) * crot
50  END DO
51  END DO
52  !
53  END DO
54  RETURN
55END SUBROUTINE nxgrarot
Note: See TracBrowser for help on using the repository browser.