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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25 - (show annotations)
Fri Mar 5 16:43:45 2010 UTC (14 years, 2 months ago) by guez
File size: 1456 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 !
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 comdissipn
23 IMPLICIT NONE
24 c
25
26 INTEGER klevel
27 c
28 REAL xcov( ip1jmp1,klevel ), ycov( ip1jm,klevel )
29 REAL gdx( ip1jmp1,klevel ), gdy( ip1jm,klevel )
30
31 REAL div(ip1jmp1,llm)
32
33 INTEGER l,ij,iter,ld
34 c
35 c
36 c
37 CALL SCOPY( ip1jmp1*klevel,xcov,1,gdx,1 )
38 CALL SCOPY( ip1jm*klevel, ycov,1,gdy,1 )
39 c
40 DO 10 iter = 1,ld
41 c
42 CALL diverg( klevel, gdx , gdy, div )
43 CALL filtreg( div, jjp1, klevel, 2,1, .true.,2 )
44 CALL grad( klevel, div, gdx, gdy )
45 c
46 DO 5 l = 1, klevel
47 DO 3 ij = 1, ip1jmp1
48 gdx( ij,l ) = - gdx( ij,l ) * cdivu
49 3 CONTINUE
50 DO 4 ij = 1, ip1jm
51 gdy( ij,l ) = - gdy( ij,l ) * cdivu
52 4 CONTINUE
53 5 CONTINUE
54 c
55 10 CONTINUE
56 RETURN
57 END

  ViewVC Help
Powered by ViewVC 1.1.21