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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25 - (hide annotations)
Fri Mar 5 16:43:45 2010 UTC (14 years, 3 months ago) by guez
File size: 1339 byte(s)
Simplified "etat0_lim.sh" and "gcm.sh" because the full versions
depended on personal arrangements for directories and machines.

Translated included files into modules. Encapsulated procedures into modules.

Moved variables from module "comgeom" to local variables of
"inigeom". Deleted some unused variables in "comgeom".

Moved variable "day_ini" from module "temps" to module "dynetat0_m".

Removed useless test on variable "time" and useless "close" statement
in procedure "leapfrog".

Removed useless call to "inigeom" in procedure "limit".

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 25 use comdissipn
10 guez 3 IMPLICIT NONE
11     c
12     c=======================================================================
13     c
14     c Auteur : P. Le Van
15     c ----------
16     c
17     c lh
18     c calcul de (div( grad )) de h .....
19     c h et lh sont des arguments d'entree pour le s-prog
20     c divgra est un argument de sortie pour le s-prog
21     c
22     c=======================================================================
23     c
24     c declarations:
25     c -------------
26     c
27     c
28     INTEGER klevel
29     REAL h( ip1jmp1,klevel ), divgra( ip1jmp1,klevel )
30     c
31     REAL ghy(ip1jm,llm), ghx(ip1jmp1,llm)
32    
33     INTEGER l,ij,iter,lh
34     c
35     c
36     c
37     CALL SCOPY ( ip1jmp1*klevel,h,1,divgra,1 )
38     c
39     DO 10 iter = 1,lh
40    
41     CALL filtreg ( divgra,jjp1,klevel,2,1,.true.,1 )
42    
43     CALL grad (klevel,divgra, ghx , ghy )
44     CALL diverg (klevel, ghx , ghy , divgra )
45    
46     CALL filtreg ( divgra,jjp1,klevel,2,1,.true.,1)
47    
48     DO 5 l = 1,klevel
49     DO 4 ij = 1, ip1jmp1
50     divgra( ij,l ) = - cdivh * divgra( ij,l )
51     4 CONTINUE
52     5 CONTINUE
53     c
54     10 CONTINUE
55     RETURN
56     END

  ViewVC Help
Powered by ViewVC 1.1.21