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

Annotation of /trunk/libf/dyn3d/divgrad.f

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.21