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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 43 - (show annotations)
Fri Apr 8 12:43:31 2011 UTC (13 years, 1 month ago) by guez
File size: 1893 byte(s)
"start_init_phys" is now called directly by "etat0" instead of through
"start_init_dyn". "qsol_2d" is no longer a variable of module
"start_init_phys_m", it is an argument of
"start_init_phys". "start_init_dyn" now receives "tsol_2d" from
"etat0".

Split file "vlspltqs.f" into "vlspltqs.f90", "vlxqs.f90" and
""vlyqs.f90".

In "start_init_orog", replaced calls to "flin*" by calls to NetCDF95.

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, intent(in):: teta( ip1jmp1,llm )
30 real pbaru( ip1jmp1,llm ),pbarv( ip1jm,llm)
31 REAL dteta( ip1jmp1,llm )
32 INTEGER l,ij
33
34 REAL hbyv( ip1jm,llm ), hbxu( ip1jmp1,llm )
35
36 c
37
38 DO 5 l = 1,llm
39
40 DO 1 ij = iip2, ip1jm - 1
41 hbxu(ij,l) = pbaru(ij,l) * 0.5 * ( teta(ij,l) + teta(ij+1,l) )
42 1 CONTINUE
43
44 c .... correction pour hbxu(iip1,j,l) .....
45 c .... hbxu(iip1,j,l)= hbxu(1,j,l) ....
46
47 CDIR$ IVDEP
48 DO 2 ij = iip1+ iip1, ip1jm, iip1
49 hbxu( ij, l ) = hbxu( ij - iim, l )
50 2 CONTINUE
51
52
53 DO 3 ij = 1,ip1jm
54 hbyv(ij,l)= pbarv(ij, l)* 0.5 * ( teta(ij, l)+ teta(ij +iip1,l) )
55 3 CONTINUE
56
57 5 CONTINUE
58
59
60 CALL convflu ( hbxu, hbyv, llm, dteta )
61
62
63 c stockage dans dh de la convergence horizont. filtree' du flux
64 c .... ...........
65 c d'enthalpie potentielle .
66
67 CALL filtreg( dteta, jjp1, llm, 2, 2, .true., 1)
68
69 c
70 RETURN
71 END

  ViewVC Help
Powered by ViewVC 1.1.21