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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27 - (show annotations)
Thu Mar 25 14:29:07 2010 UTC (14 years, 2 months ago) by guez
File size: 1520 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/gradiv.F,v 1.1.1.1 2004/05/19 12:53:06 lmdzadmin Exp $
3 !
4 SUBROUTINE gradiv(klevel, xcov, ycov, ld, gdx, gdy )
5 c
6 c Auteur : P. Le Van
7 c
8 c ***************************************************************
9 c
10 c ld
11 c calcul de (grad (div) ) du vect. v ....
12 c
13 c xcov et ycov etant les composant.covariantes de v
14 c ****************************************************************
15 c xcov , ycov et ld sont des arguments d'entree pour le s-prog
16 c gdx et gdy sont des arguments de sortie pour le s-prog
17 c
18 c
19 use dimens_m
20 use paramet_m
21 use logic
22 use inidissip_m
23 use filtreg_m, only: filtreg
24 IMPLICIT NONE
25 c
26
27 INTEGER klevel
28 c
29 REAL xcov( ip1jmp1,klevel ), ycov( ip1jm,klevel )
30 REAL gdx( ip1jmp1,klevel ), gdy( ip1jm,klevel )
31
32 REAL div(ip1jmp1,llm)
33
34 INTEGER l,ij,iter
35 integer, intent(in):: ld
36 c
37 c
38 c
39 CALL SCOPY( ip1jmp1*klevel,xcov,1,gdx,1 )
40 CALL SCOPY( ip1jm*klevel, ycov,1,gdy,1 )
41 c
42 DO 10 iter = 1,ld
43 c
44 CALL diverg( klevel, gdx , gdy, div )
45 CALL filtreg( div, jjp1, klevel, 2,1, .true.,2 )
46 CALL grad( klevel, div, gdx, gdy )
47 c
48 DO 5 l = 1, klevel
49 DO 3 ij = 1, ip1jmp1
50 gdx( ij,l ) = - gdx( ij,l ) * cdivu
51 3 CONTINUE
52 DO 4 ij = 1, ip1jm
53 gdy( ij,l ) = - gdy( ij,l ) * cdivu
54 4 CONTINUE
55 5 CONTINUE
56 c
57 10 CONTINUE
58 RETURN
59 END

  ViewVC Help
Powered by ViewVC 1.1.21