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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 54 - (hide annotations)
Tue Dec 6 15:07:04 2011 UTC (12 years, 6 months ago) by guez
File size: 1528 byte(s)
Removed Numerical Recipes procedure "ran1". Replaced calls to "ran1"
in "inidissip" by calls to intrinsic procedures.

Split file "interface_surf.f90" into a file with a module containing
only variables, "interface_surf", and single-procedure files. Gathered
files into directory "Interface_surf".

Added argument "cdivu" to "gradiv" and "gradiv2", "cdivh" to
"divgrad2" and "divgrad", and "crot" to "nxgraro2" and
"nxgrarot". "dissip" now uses variables "cdivu", "cdivh" and "crot"
from module "inidissip_m", so it can pass them to "gradiv2",
etc. Thanks to this modification, we avoid a circular dependency
betwwen "inidissip.f90" and "gradiv2.f90", etc. The value -1. used by
"gradiv2", for instance, during computation of eigenvalues is not the
value "cdivu" computed by "inidissip".

Extracted procedure "start_inter_3d" from module "startdyn", to its
own module.

In "inidissip", unrolled loop on "ii". I find it clearer now.

Moved variables "matriceun", "matriceus", "matricevn", "matricevs",
"matrinvn" and "matrinvs" from module "parafilt" to module
"inifilr_m". Moved variables "jfiltnu", "jfiltnv", "jfiltsu",
"jfiltsv" from module "coefils" to module "inifilr_m".

1 guez 3 !
2     ! $Header: /home/cvsroot/LMDZ4/libf/dyn3d/gradiv.F,v 1.1.1.1 2004/05/19 12:53:06 lmdzadmin Exp $
3     !
4 guez 54 SUBROUTINE gradiv(klevel, xcov, ycov, ld, gdx, gdy, cdivu)
5 guez 3 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 guez 27 use filtreg_m, only: filtreg
23 guez 3 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 guez 54 real, intent(in):: cdivu
31 guez 3 REAL div(ip1jmp1,llm)
32    
33 guez 26 INTEGER l,ij,iter
34     integer, intent(in):: ld
35 guez 3 c
36     c
37     c
38     CALL SCOPY( ip1jmp1*klevel,xcov,1,gdx,1 )
39     CALL SCOPY( ip1jm*klevel, ycov,1,gdy,1 )
40     c
41     DO 10 iter = 1,ld
42     c
43     CALL diverg( klevel, gdx , gdy, div )
44     CALL filtreg( div, jjp1, klevel, 2,1, .true.,2 )
45     CALL grad( klevel, div, gdx, gdy )
46     c
47     DO 5 l = 1, klevel
48     DO 3 ij = 1, ip1jmp1
49     gdx( ij,l ) = - gdx( ij,l ) * cdivu
50     3 CONTINUE
51     DO 4 ij = 1, ip1jm
52     gdy( ij,l ) = - gdy( ij,l ) * cdivu
53     4 CONTINUE
54     5 CONTINUE
55     c
56     10 CONTINUE
57     RETURN
58     END

  ViewVC Help
Powered by ViewVC 1.1.21