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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27 - (show annotations)
Thu Mar 25 14:29:07 2010 UTC (14 years, 1 month ago) by guez
File size: 1868 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 !
2 ! $Header: /home/cvsroot/LMDZ4/libf/dyn3d/dteta1.F,v 1.1.1.1 2004/05/19 12:53:06 lmdzadmin Exp $
3 !
4 SUBROUTINE dteta1 ( teta, pbaru, pbarv, dteta)
5 use dimens_m
6 use paramet_m
7 use logic
8 use filtreg_m, only: filtreg
9
10 IMPLICIT NONE
11
12 c=======================================================================
13 c
14 c Auteur: P. Le Van
15 c -------
16 c Modif F.Forget 03/94 (on retire q et dq pour construire dteta1)
17 c
18 c ********************************************************************
19 c ... calcul du terme de convergence horizontale du flux d'enthalpie
20 c potentielle ......
21 c ********************************************************************
22 c .. teta,pbaru et pbarv sont des arguments d'entree pour le s-pg ....
23 c dteta sont des arguments de sortie pour le s-pg ....
24 c
25 c=======================================================================
26
27
28
29 REAL teta( ip1jmp1,llm ),pbaru( ip1jmp1,llm ),pbarv( ip1jm,llm)
30 REAL dteta( ip1jmp1,llm )
31 INTEGER l,ij
32
33 REAL hbyv( ip1jm,llm ), hbxu( ip1jmp1,llm )
34
35 c
36
37 DO 5 l = 1,llm
38
39 DO 1 ij = iip2, ip1jm - 1
40 hbxu(ij,l) = pbaru(ij,l) * 0.5 * ( teta(ij,l) + teta(ij+1,l) )
41 1 CONTINUE
42
43 c .... correction pour hbxu(iip1,j,l) .....
44 c .... hbxu(iip1,j,l)= hbxu(1,j,l) ....
45
46 CDIR$ IVDEP
47 DO 2 ij = iip1+ iip1, ip1jm, iip1
48 hbxu( ij, l ) = hbxu( ij - iim, l )
49 2 CONTINUE
50
51
52 DO 3 ij = 1,ip1jm
53 hbyv(ij,l)= pbarv(ij, l)* 0.5 * ( teta(ij, l)+ teta(ij +iip1,l) )
54 3 CONTINUE
55
56 5 CONTINUE
57
58
59 CALL convflu ( hbxu, hbyv, llm, dteta )
60
61
62 c stockage dans dh de la convergence horizont. filtree' du flux
63 c .... ...........
64 c d'enthalpie potentielle .
65
66 CALL filtreg( dteta, jjp1, llm, 2, 2, .true., 1)
67
68 c
69 RETURN
70 END

  ViewVC Help
Powered by ViewVC 1.1.21