1 | ! |
---|
2 | ! $Header: /home/cvsroot/LMDZ4/libf/phylmd/ini_histins.h,v 1.1.1.1 2004/05/19 12:53:08 lmdzadmin Exp $ |
---|
3 | ! |
---|
4 | IF (ok_instan) THEN |
---|
5 | |
---|
6 | zsto = dtime * ecrit_ins |
---|
7 | zout = dtime * ecrit_ins |
---|
8 | |
---|
9 | idayref = day_ref |
---|
10 | CALL ymds2ju(annee_ref, 1, idayref, zero, zjulian) |
---|
11 | |
---|
12 | call histbeg_phy("histins.nc",itau_phy, |
---|
13 | . zjulian,dtime,nhori,nid_ins) |
---|
14 | |
---|
15 | !$OMP MASTER |
---|
16 | CALL histvert(nid_ins, "presnivs", "Vertical levels", "Pa", |
---|
17 | . klev, presnivs, nvert) |
---|
18 | |
---|
19 | c------------------------------------------------------- |
---|
20 | IF(lev_histday.GE.1) THEN |
---|
21 | c |
---|
22 | ccccccccccccc 2D fields, basics |
---|
23 | c |
---|
24 | CALL histdef(nid_ins, "phis", "Surface geop. height", "-", |
---|
25 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
26 | . "once", zsto,zout) |
---|
27 | c |
---|
28 | CALL histdef(nid_ins, "aire", "Grid area", "-", |
---|
29 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
30 | . "once", zsto,zout) |
---|
31 | c |
---|
32 | CALL histdef(nid_ins, "tsol", "Surface Temperature", "K", |
---|
33 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
34 | . "ins(X)", zsto,zout) |
---|
35 | c |
---|
36 | CALL histdef(nid_ins, "psol", "Surface Pressure", "Pa", |
---|
37 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
38 | . "ins(X)", zsto,zout) |
---|
39 | c |
---|
40 | c CALL histdef(nid_ins, "ue", "Zonal energy transport", "-", |
---|
41 | c . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
42 | c . "ins(X)", zsto,zout) |
---|
43 | c |
---|
44 | c CALL histdef(nid_ins, "ve", "Merid energy transport", "-", |
---|
45 | c . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
46 | c . "ins(X)", zsto,zout) |
---|
47 | c |
---|
48 | c CALL histdef(nid_ins, "cdragh", "Drag coef on T", "-", |
---|
49 | c . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
50 | c . "ins(X)", zsto,zout) |
---|
51 | c |
---|
52 | c CALL histdef(nid_ins, "cdragm", "Drag coef on U", "-", |
---|
53 | c . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
54 | c . "ins(X)", zsto,zout) |
---|
55 | c |
---|
56 | ENDIF !lev_histday.GE.1 |
---|
57 | c |
---|
58 | c------------------------------------------------------- |
---|
59 | IF(lev_histday.GE.2) THEN |
---|
60 | c |
---|
61 | ccccccccccccc 3D fields, basics |
---|
62 | c |
---|
63 | CALL histdef(nid_ins, "temp", "Air temperature", "K", |
---|
64 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
65 | . "ins(X)", zsto,zout) |
---|
66 | c |
---|
67 | CALL histdef(nid_ins, "pres", "Air pressure", "Pa", |
---|
68 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
69 | . "ins(X)", zsto,zout) |
---|
70 | c |
---|
71 | CALL histdef(nid_ins, "geop", "Geopotential height", "m", |
---|
72 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
73 | . "ins(X)", zsto,zout) |
---|
74 | c |
---|
75 | CALL histdef(nid_ins, "vitu", "Zonal wind", "m/s", |
---|
76 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
77 | . "ins(X)", zsto,zout) |
---|
78 | c |
---|
79 | CALL histdef(nid_ins, "vitv", "Meridional wind", "m/s", |
---|
80 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
81 | . "ins(X)", zsto,zout) |
---|
82 | c |
---|
83 | CALL histdef(nid_ins, "vitw", "Vertical wind", "Pa/s", |
---|
84 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
85 | . "ins(X)", zsto,zout) |
---|
86 | c |
---|
87 | CALL histdef(nid_ins, "dudyn", "Dynamics dU", "m/s2", |
---|
88 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
89 | . "ins(X)", zsto,zout) |
---|
90 | c |
---|
91 | CALL histdef(nid_ins, "duvdf", "Boundary-layer dU", "m/s2", |
---|
92 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
93 | . "ins(X)", zsto,zout) |
---|
94 | c |
---|
95 | c CALL histdef(nid_ins, "mang", "Angular momentum", "kg m2/s", |
---|
96 | c . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
97 | c . "ins(X)", zsto,zout) |
---|
98 | c |
---|
99 | c CALL histdef(nid_ins, "Kz", "vertical diffusion coef", "m2/s", |
---|
100 | c . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
101 | c . "ins(X)", zsto,zout) |
---|
102 | c |
---|
103 | c plusieurs traceurs |
---|
104 | if (iflag_trac.eq.1) THEN |
---|
105 | DO iq=1,nqmax |
---|
106 | IF (iq.LE.99) THEN |
---|
107 | WRITE(str2,'(i2.2)') iq |
---|
108 | CALL histdef(nid_ins, tname(iq), ttext(iq), "ppm", |
---|
109 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
110 | . "ins(X)", zsto,zout) |
---|
111 | ELSE |
---|
112 | PRINT*, "Trop de traceurs" |
---|
113 | CALL abort |
---|
114 | ENDIF |
---|
115 | ENDDO |
---|
116 | endif |
---|
117 | c |
---|
118 | CALL histdef(nid_ins, "tops", "Solar rad. at TOA", "W/m2", |
---|
119 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
120 | . "ins(X)", zsto,zout) |
---|
121 | c |
---|
122 | ENDIF !lev_histday.GE.2 |
---|
123 | c |
---|
124 | c------------------------------------------------------- |
---|
125 | IF(lev_histday.GE.3) THEN |
---|
126 | c |
---|
127 | cccccccccccccccccc Radiative transfer |
---|
128 | c |
---|
129 | c 2D |
---|
130 | c |
---|
131 | CALL histdef(nid_ins, "topl", "IR rad. at TOA", "W/m2", |
---|
132 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
133 | . "ins(X)", zsto,zout) |
---|
134 | c |
---|
135 | CALL histdef(nid_ins, "sols", "Solar rad. at surf.", "W/m2", |
---|
136 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
137 | . "ins(X)", zsto,zout) |
---|
138 | c |
---|
139 | CALL histdef(nid_ins, "soll", "IR rad. at surface", "W/m2", |
---|
140 | . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
141 | . "ins(X)", zsto,zout) |
---|
142 | c |
---|
143 | c 3D |
---|
144 | c |
---|
145 | CALL histdef(nid_ins, "SWnet", "Net SW flux","W/m2", |
---|
146 | . iim,jj_nb,nhori, klev,1,klev,nvert, |
---|
147 | . 32, "ins(X)", zsto,zout) |
---|
148 | c |
---|
149 | CALL histdef(nid_ins, "LWnet", "Net LW flux","W/m2", |
---|
150 | . iim,jj_nb,nhori, klev,1,klev,nvert, |
---|
151 | . 32, "ins(X)", zsto,zout) |
---|
152 | c |
---|
153 | CALL histdef(nid_ins, "fluxvdf", "PBL net flux","W/m2", |
---|
154 | . iim,jj_nb,nhori, klev,1,klev,nvert, |
---|
155 | . 32, "ins(X)", zsto,zout) |
---|
156 | c |
---|
157 | CALL histdef(nid_ins, "fluxdyn", "Dyn. net flux","W/m2", |
---|
158 | . iim,jj_nb,nhori, klev,1,klev,nvert, |
---|
159 | . 32, "ins(X)", zsto,zout) |
---|
160 | c |
---|
161 | CALL histdef(nid_ins, "fluxajs", "Dry adj. net flux","W/m2", |
---|
162 | . iim,jj_nb,nhori, klev,1,klev,nvert, |
---|
163 | . 32, "ins(X)", zsto,zout) |
---|
164 | c |
---|
165 | c CALL histdef(nid_ins, "fluxec", "Cin. net flux","W/m2", |
---|
166 | c . iim,jj_nb,nhori, klev,1,klev,nvert, |
---|
167 | c . 32, "ins(X)", zsto,zout) |
---|
168 | c |
---|
169 | ENDIF !lev_histday.GE.3 |
---|
170 | c |
---|
171 | c------------------------------------------------------- |
---|
172 | IF(lev_histday.GE.4) THEN |
---|
173 | c |
---|
174 | CALL histdef(nid_ins, "dtdyn", "Dynamics dT", "K/s", |
---|
175 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
176 | . "ins(X)", zsto,zout) |
---|
177 | c |
---|
178 | c CALL histdef(nid_ins, "dtphy", "Physics dT", "K/s", |
---|
179 | c . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
180 | c . "ins(X)", zsto,zout) |
---|
181 | c |
---|
182 | CALL histdef(nid_ins, "dtvdf", "Boundary-layer dT", "K/s", |
---|
183 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
184 | . "ins(X)", zsto,zout) |
---|
185 | c |
---|
186 | CALL histdef(nid_ins, "dtajs", "Dry adjust. dT", "K/s", |
---|
187 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
188 | . "ins(X)", zsto,zout) |
---|
189 | c |
---|
190 | CALL histdef(nid_ins, "dtswr", "SW radiation dT", "K/s", |
---|
191 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
192 | . "ins(X)", zsto,zout) |
---|
193 | c |
---|
194 | CALL histdef(nid_ins, "dtlwr", "LW radiation dT", "K/s", |
---|
195 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
196 | . "ins(X)", zsto,zout) |
---|
197 | c |
---|
198 | c CALL histdef(nid_ins, "dtec", "Cinetic dissip dT", "K/s", |
---|
199 | c . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
200 | c . "ins(X)", zsto,zout) |
---|
201 | c |
---|
202 | CALL histdef(nid_ins, "duajs", "Dry convection dU", "m/s2", |
---|
203 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
204 | . "ins(X)", zsto,zout) |
---|
205 | c |
---|
206 | CALL histdef(nid_ins, "dugwo", "GW oro dU", "m/s2", |
---|
207 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
208 | . "ins(X)", zsto,zout) |
---|
209 | c |
---|
210 | CALL histdef(nid_ins, "dugwno", "GW non-oro dU", "m/s2", |
---|
211 | . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
212 | . "ins(X)", zsto,zout) |
---|
213 | c |
---|
214 | c CALL histdef(nid_ins, "dvvdf", "Boundary-layer dV", "m/s2", |
---|
215 | c . iim,jj_nb,nhori, klev,1,klev,nvert, 32, |
---|
216 | c . "ins(X)", zsto,zout) |
---|
217 | c |
---|
218 | ENDIF !lev_histday.GE.4 |
---|
219 | c |
---|
220 | c------------------------------------------------------- |
---|
221 | IF(lev_histday.GE.5) THEN |
---|
222 | c |
---|
223 | c call histdef(nid_ins, "taux", |
---|
224 | c $ "Zonal wind stress", "Pa", |
---|
225 | c $ iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
226 | c $ "ins(X)", zsto,zout) |
---|
227 | c |
---|
228 | c call histdef(nid_ins, "tauy", |
---|
229 | c $ "Meridional xind stress", "Pa", |
---|
230 | c $ iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
231 | c $ "ins(X)", zsto,zout) |
---|
232 | c |
---|
233 | c CALL histdef(nid_ins, "cdrm", "Momentum drag coef.", "-", |
---|
234 | c . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
235 | c . "ins(X)", zsto,zout) |
---|
236 | c |
---|
237 | c CALL histdef(nid_ins, "cdrh", "Heat drag coef.", "-", |
---|
238 | c . iim,jj_nb,nhori, 1,1,1, nvert, 32, |
---|
239 | c . "ins(X)", zsto,zout) |
---|
240 | c |
---|
241 | ENDIF !lev_histday.GE.5 |
---|
242 | c------------------------------------------------------- |
---|
243 | c |
---|
244 | CALL histend(nid_ins) |
---|
245 | !$OMP END MASTER |
---|
246 | |
---|
247 | ENDIF |
---|