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

Contents of /trunk/libf/dyn3d/Dissipation/divgrad.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 64 - (show annotations)
Wed Aug 29 14:47:17 2012 UTC (11 years, 10 months ago) by guez
File size: 1448 byte(s)
Removed variable lstardis in module comdissnew and procedures gradiv
and nxgrarot. lstardir had to be true. gradiv and nxgrarot were called
if lstardis was false. Removed argument iter of procedure
filtreg. iter had to be 1. gradiv and nxgrarot called filtreg with
iter == 2.

Moved procedure flxsetup into module yoecumf. Module yoecumf is only
used in program units of directory Conflx, moved it there.

1 !
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, cdivh )
5 use grad_m, only: grad
6 use dimens_m
7 use paramet_m
8 use conf_gcm_m
9 use comgeom
10 use filtreg_m, only: filtreg
11 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, intent(in):: h( ip1jmp1,klevel )
31 real, intent(out):: divgra( ip1jmp1,klevel )
32 real, intent(in):: cdivh
33 c
34 REAL ghy(ip1jm,llm), ghx(ip1jmp1,llm)
35
36 INTEGER l,ij,iter
37 integer, intent(in):: lh
38 c
39 c
40 c
41 divgra = h
42 c
43 DO 10 iter = 1,lh
44
45 CALL filtreg ( divgra,jjp1,klevel,2,1,.true.)
46
47 CALL grad (klevel,divgra, ghx , ghy )
48 CALL diverg (klevel, ghx , ghy , divgra )
49
50 CALL filtreg ( divgra,jjp1,klevel,2,1,.true.)
51
52 DO 5 l = 1,klevel
53 DO 4 ij = 1, ip1jmp1
54 divgra( ij,l ) = - cdivh * divgra( ij,l )
55 4 CONTINUE
56 5 CONTINUE
57 c
58 10 CONTINUE
59 RETURN
60 END

  ViewVC Help
Powered by ViewVC 1.1.21