/[lmdze]/trunk/dyn3d/rotatf.f
ViewVC logotype

Annotation of /trunk/dyn3d/rotatf.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 64 - (hide annotations)
Wed Aug 29 14:47:17 2012 UTC (11 years, 9 months ago) by guez
Original Path: trunk/libf/dyn3d/rotatf.f
File size: 1521 byte(s)
Removed variable lstardis in module comdissnew and procedures gradiv
and nxgrarot. lstardir had to be true. gradiv and nxgrarot were called
if lstardis was false. Removed argument iter of procedure
filtreg. iter had to be 1. gradiv and nxgrarot called filtreg with
iter == 2.

Moved procedure flxsetup into module yoecumf. Module yoecumf is only
used in program units of directory Conflx, moved it there.

1 guez 3 !
2     ! $Header: /home/cvsroot/LMDZ4/libf/dyn3d/rotatf.F,v 1.1.1.1 2004/05/19 12:53:05 lmdzadmin Exp $
3     !
4     SUBROUTINE rotatf (klevel, x, y, rot )
5     c
6     c Auteur : P.Le Van
7     c**************************************************************
8     c. calcule le rotationnel
9     c a tous les niveaux d'1 vecteur de comp. x et y ..
10     c x et y etant des composantes covariantes ...
11     c********************************************************************
12     c klevel, x et y sont des arguments d'entree pour le s-prog
13     c rot est un argument de sortie pour le s-prog
14     c
15     use dimens_m
16     use paramet_m
17     use comgeom
18 guez 27 use filtreg_m, only: filtreg
19 guez 3 IMPLICIT NONE
20     c
21     c
22     c ..... variables en arguments ......
23     c
24     INTEGER klevel
25     REAL rot( ip1jm,klevel )
26     REAL x( ip1jmp1,klevel ), y( ip1jm,klevel )
27     c
28     c ... variables locales ...
29     c
30     INTEGER l, ij
31     c
32     c
33     DO 10 l = 1,klevel
34     c
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     c
40     c .... correction pour rot( iip1,j,l) ....
41     c .... rot(iip1,j,l)= rot(1,j,l) ...
42     CDIR$ IVDEP
43     DO ij = iip1, ip1jm, iip1
44     rot( ij,l ) = rot( ij -iim,l )
45     ENDDO
46     c
47     10 CONTINUE
48    
49 guez 64 CALL filtreg( rot, jjm, klevel, 2, 2, .FALSE.)
50 guez 3
51     DO l = 1, klevel
52     DO ij = 1, ip1jm
53     rot(ij,l) = rot(ij,l) * unsairez(ij)
54     ENDDO
55     ENDDO
56     c
57     c
58     RETURN
59     END

  ViewVC Help
Powered by ViewVC 1.1.21