/[lmdze]/trunk/libf/dyn3d/nxgrarot.f
ViewVC logotype

Contents of /trunk/libf/dyn3d/nxgrarot.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27 - (show annotations)
Thu Mar 25 14:29:07 2010 UTC (14 years, 1 month ago) by guez
File size: 1498 byte(s)
"dyn3d" and "filtrez" do not contain any included file so make rules
have been updated.

"comdissip.f90" was useless, removed it.

"dynredem0" wrote undefined value in "controle(31)", that was
overwritten by "dynredem1". Now "dynredem0" just writes 0 to
"controle(31)".

Removed arguments of "inidissip". "inidissip" now accesses the
variables by use association.

In program "etat0_lim", "itaufin" is not defined so "dynredem1" wrote
undefined value to "controle(31)". Added argument "itau" of
"dynredem1" to correct that.

"itaufin" does not need to be a module variable (of "temps"), made it
a local variable of "leapfrog".

Removed calls to "diagedyn" from "leapfrog".

1 !
2 ! $Header: /home/cvsroot/LMDZ4/libf/dyn3d/nxgrarot.F,v 1.1.1.1 2004/05/19 12:53:06 lmdzadmin Exp $
3 !
4 SUBROUTINE nxgrarot (klevel,xcov, ycov, lr, grx, gry )
5 c ***********************************************************
6 c
7 c Auteur : P.Le Van
8 c
9 c lr
10 c calcul de ( nXgrad (rot) ) du vect. v ....
11 c
12 c xcov et ycov etant les compos. covariantes de v
13 c ***********************************************************
14 c xcov , ycov et lr sont des arguments d'entree pour le s-prog
15 c grx et gry sont des arguments de sortie pour le s-prog
16 c
17 c
18 use dimens_m
19 use paramet_m
20 use logic
21 use inidissip_m
22 use filtreg_m, only: filtreg
23 IMPLICIT NONE
24 c
25 c
26 c
27 INTEGER klevel
28 REAL xcov( ip1jmp1,klevel ), ycov( ip1jm,klevel )
29 REAL grx( ip1jmp1,klevel ), gry( ip1jm,klevel )
30 c
31 REAL rot(ip1jm,llm)
32
33 INTEGER l,ij,iter
34 integer, intent(in):: lr
35 c
36 c
37 c
38 CALL SCOPY ( ip1jmp1*klevel, xcov, 1, grx, 1 )
39 CALL SCOPY ( ip1jm*klevel, ycov, 1, gry, 1 )
40 c
41 DO 10 iter = 1,lr
42 CALL rotat (klevel,grx, gry, rot )
43 CALL filtreg( rot, jjm, klevel, 2,1, .false.,2)
44 CALL nxgrad (klevel,rot, grx, gry )
45 c
46 DO 5 l = 1, klevel
47 DO 2 ij = 1, ip1jm
48 gry( ij,l ) = - gry( ij,l ) * crot
49 2 CONTINUE
50 DO 3 ij = 1, ip1jmp1
51 grx( ij,l ) = - grx( ij,l ) * crot
52 3 CONTINUE
53 5 CONTINUE
54 c
55 10 CONTINUE
56 RETURN
57 END

  ViewVC Help
Powered by ViewVC 1.1.21