1 | ! |
---|
2 | ! $Header$ |
---|
3 | ! |
---|
4 | subroutine interpost(q,qppm) |
---|
5 | |
---|
6 | implicit none |
---|
7 | |
---|
8 | |
---|
9 | !----------------------------------------------------------------------- |
---|
10 | ! INCLUDE 'dimensions.h' |
---|
11 | ! |
---|
12 | ! dimensions.h contient les dimensions du modele |
---|
13 | ! ndm est tel que iim=2**ndm |
---|
14 | !----------------------------------------------------------------------- |
---|
15 | |
---|
16 | INTEGER iim,jjm,llm,ndm |
---|
17 | |
---|
18 | PARAMETER (iim= 128,jjm=96,llm=64,ndm=1) |
---|
19 | |
---|
20 | !----------------------------------------------------------------------- |
---|
21 | ! |
---|
22 | ! $Header$ |
---|
23 | ! |
---|
24 | ! |
---|
25 | ! ATTENTION!!!!: ce fichier include est compatible format fixe/format libre |
---|
26 | ! veillez n'utiliser que des ! pour les commentaires |
---|
27 | ! et bien positionner les & des lignes de continuation |
---|
28 | ! (les placer en colonne 6 et en colonne 73) |
---|
29 | ! |
---|
30 | ! |
---|
31 | !----------------------------------------------------------------------- |
---|
32 | ! INCLUDE 'paramet.h' |
---|
33 | |
---|
34 | INTEGER iip1,iip2,iip3,jjp1,llmp1,llmp2,llmm1 |
---|
35 | INTEGER kftd,ip1jm,ip1jmp1,ip1jmi1,ijp1llm |
---|
36 | INTEGER ijmllm,mvar |
---|
37 | INTEGER jcfil,jcfllm |
---|
38 | |
---|
39 | PARAMETER( iip1= iim+1,iip2=iim+2,iip3=iim+3 & |
---|
40 | & ,jjp1=jjm+1-1/jjm) |
---|
41 | PARAMETER( llmp1 = llm+1, llmp2 = llm+2, llmm1 = llm-1 ) |
---|
42 | PARAMETER( kftd = iim/2 -ndm ) |
---|
43 | PARAMETER( ip1jm = iip1*jjm, ip1jmp1= iip1*jjp1 ) |
---|
44 | PARAMETER( ip1jmi1= ip1jm - iip1 ) |
---|
45 | PARAMETER( ijp1llm= ip1jmp1 * llm, ijmllm= ip1jm * llm ) |
---|
46 | PARAMETER( mvar= ip1jmp1*( 2*llm+1) + ijmllm ) |
---|
47 | PARAMETER( jcfil=jjm/2+5, jcfllm=jcfil*llm ) |
---|
48 | |
---|
49 | !----------------------------------------------------------------------- |
---|
50 | ! |
---|
51 | ! $Id: comconst.h 1437 2010-09-30 08:29:10Z emillour $ |
---|
52 | ! |
---|
53 | !----------------------------------------------------------------------- |
---|
54 | ! INCLUDE comconst.h |
---|
55 | |
---|
56 | COMMON/comconsti/im,jm,lllm,imp1,jmp1,lllmm1,lllmp1,lcl, & |
---|
57 | & iflag_top_bound,mode_top_bound |
---|
58 | COMMON/comconstr/dtvr,daysec, & |
---|
59 | & pi,dtphys,dtdiss,rad,r,kappa,cotot,unsim,g,omeg & |
---|
60 | & ,dissip_fac_mid,dissip_fac_up,dissip_deltaz,dissip_hdelta & |
---|
61 | & ,dissip_pupstart ,tau_top_bound, & |
---|
62 | & daylen,molmass, ihf |
---|
63 | COMMON/cpdetvenus/cpp,nu_venus,t0_venus |
---|
64 | |
---|
65 | INTEGER im,jm,lllm,imp1,jmp1,lllmm1,lllmp1,lcl |
---|
66 | REAL dtvr ! dynamical time step (in s) |
---|
67 | REAL daysec !length (in s) of a standard day |
---|
68 | REAL pi ! something like 3.14159.... |
---|
69 | REAL dtphys ! (s) time step for the physics |
---|
70 | REAL dtdiss ! (s) time step for the dissipation |
---|
71 | REAL rad ! (m) radius of the planet |
---|
72 | REAL r ! Reduced Gas constant r=R/mu |
---|
73 | ! with R=8.31.. J.K-1.mol-1, mu: mol mass of atmosphere (kg/mol) |
---|
74 | REAL cpp ! Cp |
---|
75 | REAL kappa ! kappa=R/Cp |
---|
76 | REAL cotot |
---|
77 | REAL unsim ! = 1./iim |
---|
78 | REAL g ! (m/s2) gravity |
---|
79 | REAL omeg ! (rad/s) rotation rate of the planet |
---|
80 | ! Dissipation factors, for Earth model: |
---|
81 | REAL dissip_factz,dissip_zref !dissip_deltaz |
---|
82 | ! Dissipation factors, for other planets: |
---|
83 | REAL dissip_fac_mid,dissip_fac_up,dissip_deltaz,dissip_hdelta |
---|
84 | REAL dissip_pupstart |
---|
85 | INTEGER iflag_top_bound,mode_top_bound |
---|
86 | REAL tau_top_bound |
---|
87 | REAL daylen ! length of solar day, in 'standard' day length |
---|
88 | REAL molmass ! (g/mol) molar mass of the atmosphere |
---|
89 | |
---|
90 | REAL nu_venus,t0_venus ! coeffs needed for Cp(T), Venus atmosphere |
---|
91 | REAL ihf ! (W/m2) intrinsic heat flux for giant planets |
---|
92 | |
---|
93 | |
---|
94 | !----------------------------------------------------------------------- |
---|
95 | ! |
---|
96 | ! $Id: comvert.h 1654 2012-09-24 15:07:18Z aslmd $ |
---|
97 | ! |
---|
98 | !----------------------------------------------------------------------- |
---|
99 | ! INCLUDE 'comvert.h' |
---|
100 | |
---|
101 | COMMON/comvertr/ap(llm+1),bp(llm+1),presnivs(llm),dpres(llm), & |
---|
102 | & pa,preff,nivsigs(llm),nivsig(llm+1), & |
---|
103 | & aps(llm),bps(llm),scaleheight,pseudoalt(llm) |
---|
104 | |
---|
105 | common/comverti/disvert_type, pressure_exner |
---|
106 | |
---|
107 | real ap ! hybrid pressure contribution at interlayers |
---|
108 | real bp ! hybrid sigma contribution at interlayer |
---|
109 | real presnivs ! (reference) pressure at mid-layers |
---|
110 | real dpres |
---|
111 | real pa ! reference pressure (Pa) at which hybrid coordinates |
---|
112 | ! become purely pressure |
---|
113 | real preff ! reference surface pressure (Pa) |
---|
114 | real nivsigs |
---|
115 | real nivsig |
---|
116 | real aps ! hybrid pressure contribution at mid-layers |
---|
117 | real bps ! hybrid sigma contribution at mid-layers |
---|
118 | real scaleheight ! atmospheric (reference) scale height (km) |
---|
119 | real pseudoalt ! pseudo-altitude of model levels (km), based on presnivs(), |
---|
120 | ! preff and scaleheight |
---|
121 | |
---|
122 | integer disvert_type ! type of vertical discretization: |
---|
123 | ! 1: Earth (default for planet_type==earth), |
---|
124 | ! automatic generation |
---|
125 | ! 2: Planets (default for planet_type!=earth), |
---|
126 | ! using 'z2sig.def' (or 'esasig.def) file |
---|
127 | |
---|
128 | logical pressure_exner |
---|
129 | ! compute pressure inside layers using Exner function, else use mean |
---|
130 | ! of pressure values at interfaces |
---|
131 | |
---|
132 | !----------------------------------------------------------------------- |
---|
133 | ! |
---|
134 | ! $Header$ |
---|
135 | ! |
---|
136 | !CDK comgeom2 |
---|
137 | COMMON/comgeom/ & |
---|
138 | & cu(iip1,jjp1),cv(iip1,jjm),unscu2(iip1,jjp1),unscv2(iip1,jjm) , & |
---|
139 | & aire(iip1,jjp1),airesurg(iip1,jjp1),aireu(iip1,jjp1) , & |
---|
140 | & airev(iip1,jjm),unsaire(iip1,jjp1),apoln,apols , & |
---|
141 | & unsairez(iip1,jjm),airuscv2(iip1,jjm),airvscu2(iip1,jjm) , & |
---|
142 | & aireij1(iip1,jjp1),aireij2(iip1,jjp1),aireij3(iip1,jjp1) , & |
---|
143 | & aireij4(iip1,jjp1),alpha1(iip1,jjp1),alpha2(iip1,jjp1) , & |
---|
144 | & alpha3(iip1,jjp1),alpha4(iip1,jjp1),alpha1p2(iip1,jjp1) , & |
---|
145 | & alpha1p4(iip1,jjp1),alpha2p3(iip1,jjp1),alpha3p4(iip1,jjp1) , & |
---|
146 | & fext(iip1,jjm),constang(iip1,jjp1), rlatu(jjp1),rlatv(jjm), & |
---|
147 | & rlonu(iip1),rlonv(iip1),cuvsurcv(iip1,jjm),cvsurcuv(iip1,jjm) , & |
---|
148 | & cvusurcu(iip1,jjp1),cusurcvu(iip1,jjp1) , & |
---|
149 | & cuvscvgam1(iip1,jjm),cuvscvgam2(iip1,jjm),cvuscugam1(iip1,jjp1), & |
---|
150 | & cvuscugam2(iip1,jjp1),cvscuvgam(iip1,jjm),cuscvugam(iip1,jjp1) , & |
---|
151 | & unsapolnga1,unsapolnga2,unsapolsga1,unsapolsga2 , & |
---|
152 | & unsair_gam1(iip1,jjp1),unsair_gam2(iip1,jjp1) , & |
---|
153 | & unsairz_gam(iip1,jjm),aivscu2gam(iip1,jjm),aiuscv2gam(iip1,jjm) & |
---|
154 | & , xprimu(iip1),xprimv(iip1) |
---|
155 | |
---|
156 | |
---|
157 | REAL & |
---|
158 | & cu,cv,unscu2,unscv2,aire,airesurg,aireu,airev,apoln,apols,unsaire & |
---|
159 | & ,unsairez,airuscv2,airvscu2,aireij1,aireij2,aireij3,aireij4 , & |
---|
160 | & alpha1,alpha2,alpha3,alpha4,alpha1p2,alpha1p4,alpha2p3,alpha3p4 , & |
---|
161 | & fext,constang,rlatu,rlatv,rlonu,rlonv,cuvscvgam1,cuvscvgam2 , & |
---|
162 | & cvuscugam1,cvuscugam2,cvscuvgam,cuscvugam,unsapolnga1 , & |
---|
163 | & unsapolnga2,unsapolsga1,unsapolsga2,unsair_gam1,unsair_gam2 , & |
---|
164 | & unsairz_gam,aivscu2gam,aiuscv2gam,cuvsurcv,cvsurcuv,cvusurcu , & |
---|
165 | & cusurcvu,xprimu,xprimv |
---|
166 | |
---|
167 | c Arguments |
---|
168 | real q(iip1,jjp1,llm) |
---|
169 | real qppm(iim,jjp1,llm) |
---|
170 | c Local |
---|
171 | integer l,i,j |
---|
172 | |
---|
173 | c RE-INVERSION DES NIVEAUX |
---|
174 | c le programme ppm3d travaille avec une 3ème coordonnée inversée par rapport |
---|
175 | c de celle du LMDZ: z=1<=>niveau max, z=llm+1<=>surface |
---|
176 | c On passe donc des niveaux de Lin à ceux du LMDZ |
---|
177 | |
---|
178 | do l=1,llm |
---|
179 | do j=1,jjp1 |
---|
180 | do i=1,iim |
---|
181 | q(i,j,l)=qppm(i,j,llm-l+1) |
---|
182 | enddo |
---|
183 | enddo |
---|
184 | enddo |
---|
185 | |
---|
186 | c BOUCLAGE EN LONGITUDE PAS EFFECTUE DANS PPM3D |
---|
187 | |
---|
188 | do l=1,llm |
---|
189 | do j=1,jjp1 |
---|
190 | q(iip1,j,l)=q(1,j,l) |
---|
191 | enddo |
---|
192 | enddo |
---|
193 | |
---|
194 | |
---|
195 | return |
---|
196 | |
---|
197 | end |
---|