My Project
 All Classes Files Functions Variables Macros
dteta1.F
Go to the documentation of this file.
1 !
2 ! $Header$
3 !
4  SUBROUTINE dteta1 ( teta, pbaru, pbarv, dteta)
5  IMPLICIT NONE
6 
7 c=======================================================================
8 c
9 c Auteur: P. Le Van
10 c -------
11 c Modif F.Forget 03/94 (on retire q et dq pour construire dteta1)
12 c
13 c ********************************************************************
14 c ... calcul du terme de convergence horizontale du flux d'enthalpie
15 c potentielle ......
16 c ********************************************************************
17 c .. teta,pbaru et pbarv sont des arguments d'entree pour le s-pg ....
18 c dteta sont des arguments de sortie pour le s-pg ....
19 c
20 c=======================================================================
21 
22 
23 #include "dimensions.h"
24 #include "paramet.h"
25 #include "logic.h"
26 
27  REAL teta( ip1jmp1,llm ),pbaru( ip1jmp1,llm ),pbarv( ip1jm,llm)
28  REAL dteta( ip1jmp1,llm )
29  INTEGER l,ij
30 
31  REAL hbyv( ip1jm,llm ), hbxu( ip1jmp1,llm )
32 
33 c
34 
35  DO 5 l = 1,llm
36 
37  DO 1 ij = iip2, ip1jm - 1
38  hbxu(ij,l) = pbaru(ij,l) * 0.5 * ( teta(ij,l) + teta(ij+1,l) )
39  1 CONTINUE
40 
41 c .... correction pour hbxu(iip1,j,l) .....
42 c .... hbxu(iip1,j,l)= hbxu(1,j,l) ....
43 
44 CDIR$ IVDEP
45  DO 2 ij = iip1+ iip1, ip1jm, iip1
46  hbxu( ij, l ) = hbxu( ij - iim, l )
47  2 CONTINUE
48 
49 
50  DO 3 ij = 1,ip1jm
51  hbyv(ij,l)= pbarv(ij, l)* 0.5 * ( teta(ij, l)+ teta(ij +iip1,l) )
52  3 CONTINUE
53 
54  5 CONTINUE
55 
56 
57  CALL convflu( hbxu, hbyv, llm, dteta )
58 
59 
60 c stockage dans dh de la convergence horizont. filtree' du flux
61 c .... ...........
62 c d'enthalpie potentielle .
63 
64  CALL filtreg( dteta, jjp1, llm, 2, 2, .true., 1)
65 
66 c
67  RETURN
68  END