source: trunk/LMDZ.VENUS/libf/phyvenus/ini_histins.h @ 900

Last change on this file since 900 was 892, checked in by slebonnois, 12 years ago

SL: Important commit ! Adaptation of Venus physics to parallel computation / template for arch on the LMD servers using ifort / documentation for 1D column physics and for parallel computations

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