1 | ! |
---|
2 | ! $Header$ |
---|
3 | ! |
---|
4 | IF (ok_instan) THEN |
---|
5 | c |
---|
6 | ndex2d = 0 |
---|
7 | ndex3d = 0 |
---|
8 | c |
---|
9 | c Champs 2D: |
---|
10 | c |
---|
11 | zsto = dtime * ecrit_ins |
---|
12 | zout = dtime * ecrit_ins |
---|
13 | itau_w = itau_phy + itap |
---|
14 | |
---|
15 | i = NINT(zout/zsto) |
---|
16 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,pphis,zx_tmp_2d) |
---|
17 | CALL histwrite_phy(nid_ins,"phis",itau_w,pphis) |
---|
18 | c |
---|
19 | i = NINT(zout/zsto) |
---|
20 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,airephy,zx_tmp_2d) |
---|
21 | CALL histwrite_phy(nid_ins,"aire",itau_w,airephy) |
---|
22 | |
---|
23 | DO i = 1, klon |
---|
24 | zx_tmp_fi2d(i) = paprs(i,1) |
---|
25 | ENDDO |
---|
26 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
27 | CALL histwrite_phy(nid_ins,"psol",itau_w,zx_tmp_fi2d) |
---|
28 | c |
---|
29 | DO i = 1, klon |
---|
30 | zx_tmp_fi2d(i) = rain_fall(i) + snow_fall(i) |
---|
31 | ENDDO |
---|
32 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
33 | CALL histwrite_phy(nid_ins,"precip",itau_w,zx_tmp_fi2d) |
---|
34 | c |
---|
35 | DO i = 1, klon |
---|
36 | zx_tmp_fi2d(i) = rain_lsc(i) + snow_lsc(i) |
---|
37 | ENDDO |
---|
38 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
39 | CALL histwrite_phy(nid_ins,"plul",itau_w,zx_tmp_fi2d) |
---|
40 | c |
---|
41 | DO i = 1, klon |
---|
42 | zx_tmp_fi2d(i) = rain_con(i) + snow_con(i) |
---|
43 | ENDDO |
---|
44 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
45 | CALL histwrite_phy(nid_ins,"pluc",itau_w,zx_tmp_fi2d) |
---|
46 | |
---|
47 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxtsol,zx_tmp_2d) |
---|
48 | CALL histwrite_phy(nid_ins,"tsol",itau_w,zxtsol) |
---|
49 | cccIM |
---|
50 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zt2m, zx_tmp_2d) |
---|
51 | CALL histwrite_phy(nid_ins,"t2m",itau_w,zt2m) |
---|
52 | c |
---|
53 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zq2m, zx_tmp_2d) |
---|
54 | CALL histwrite_phy(nid_ins,"q2m",itau_w,zq2m) |
---|
55 | c |
---|
56 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zu10m, zx_tmp_2d) |
---|
57 | CALL histwrite_phy(nid_ins,"u10m",itau_w,zu10m) |
---|
58 | C |
---|
59 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zv10m, zx_tmp_2d) |
---|
60 | CALL histwrite_phy(nid_ins,"v10m",itau_w,zv10m) |
---|
61 | c |
---|
62 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, snow_fall,zx_tmp_2d) |
---|
63 | CALL histwrite_phy(nid_ins,"snow",itau_w,snow_fall) |
---|
64 | |
---|
65 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cdragm,zx_tmp_2d) |
---|
66 | CALL histwrite_phy(nid_ins,"cdrm",itau_w,cdragm) |
---|
67 | c |
---|
68 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cdragh,zx_tmp_2d) |
---|
69 | CALL histwrite_phy(nid_ins,"cdrh",itau_w,cdragh) |
---|
70 | c |
---|
71 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, toplw,zx_tmp_2d) |
---|
72 | CALL histwrite_phy(nid_ins,"topl",itau_w,toplw) |
---|
73 | c |
---|
74 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, evap,zx_tmp_2d) |
---|
75 | CALL histwrite_phy(nid_ins,"evap",itau_w,evap) |
---|
76 | c |
---|
77 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, solsw,zx_tmp_2d) |
---|
78 | CALL histwrite_phy(nid_ins,"sols",itau_w,solsw) |
---|
79 | c |
---|
80 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollw,zx_tmp_2d) |
---|
81 | CALL histwrite_phy(nid_ins,"soll",itau_w,sollw) |
---|
82 | c |
---|
83 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollwdown,zx_tmp_2d) |
---|
84 | CALL histwrite_phy(nid_ins,"solldown",itau_w,sollwdown) |
---|
85 | c |
---|
86 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, bils,zx_tmp_2d) |
---|
87 | CALL histwrite_phy(nid_ins,"bils",itau_w,bils) |
---|
88 | c |
---|
89 | zx_tmp_fi2d(1:klon)=-1*sens(1:klon) |
---|
90 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, sens,zx_tmp_2d) |
---|
91 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
92 | CALL histwrite_phy(nid_ins,"sens",itau_w,zx_tmp_fi2d) |
---|
93 | c |
---|
94 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, fder,zx_tmp_2d) |
---|
95 | CALL histwrite_phy(nid_ins,"fder",itau_w,fder) |
---|
96 | c |
---|
97 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, d_ts(1,is_oce),zx_tmp_2d) |
---|
98 | CALL histwrite_phy(nid_ins,"dtsvdfo",itau_w,d_ts(:,is_oce)) |
---|
99 | c |
---|
100 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, d_ts(1,is_ter),zx_tmp_2d) |
---|
101 | CALL histwrite_phy(nid_ins,"dtsvdft",itau_w,d_ts(:,is_ter)) |
---|
102 | c |
---|
103 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, d_ts(1,is_lic),zx_tmp_2d) |
---|
104 | CALL histwrite_phy(nid_ins,"dtsvdfg",itau_w, d_ts(:,is_lic)) |
---|
105 | c |
---|
106 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, d_ts(1,is_sic),zx_tmp_2d) |
---|
107 | CALL histwrite_phy(nid_ins,"dtsvdfi",itau_w,d_ts(:,is_sic)) |
---|
108 | |
---|
109 | DO nsrf = 1, nbsrf |
---|
110 | CXXX |
---|
111 | zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf) |
---|
112 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
113 | CALL histwrite_phy(nid_ins,"pourc_"//clnsurf(nsrf),itau_w, |
---|
114 | $ zx_tmp_fi2d) |
---|
115 | C |
---|
116 | zx_tmp_fi2d(1 : klon) = fluxt( 1 : klon, 1, nsrf) |
---|
117 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
118 | CALL histwrite_phy(nid_ins,"sens_"//clnsurf(nsrf),itau_w, |
---|
119 | $ zx_tmp_fi2d) |
---|
120 | C |
---|
121 | zx_tmp_fi2d(1 : klon) = fluxlat( 1 : klon, nsrf) |
---|
122 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
123 | CALL histwrite_phy(nid_ins,"lat_"//clnsurf(nsrf),itau_w, |
---|
124 | $ zx_tmp_fi2d) |
---|
125 | C |
---|
126 | zx_tmp_fi2d(1 : klon) = ftsol( 1 : klon, nsrf) |
---|
127 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
128 | CALL histwrite_phy(nid_ins,"tsol_"//clnsurf(nsrf),itau_w, |
---|
129 | $ zx_tmp_fi2d) |
---|
130 | C |
---|
131 | zx_tmp_fi2d(1 : klon) = fluxu( 1 : klon, 1, nsrf) |
---|
132 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
133 | CALL histwrite_phy(nid_ins,"taux_"//clnsurf(nsrf),itau_w, |
---|
134 | $ zx_tmp_fi2d) |
---|
135 | C |
---|
136 | zx_tmp_fi2d(1 : klon) = fluxv( 1 : klon, 1, nsrf) |
---|
137 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
138 | CALL histwrite_phy(nid_ins,"tauy_"//clnsurf(nsrf),itau_w, |
---|
139 | $ zx_tmp_fi2d) |
---|
140 | C |
---|
141 | zx_tmp_fi2d(1 : klon) = frugs( 1 : klon, nsrf) |
---|
142 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
143 | CALL histwrite_phy(nid_ins,"rugs_"//clnsurf(nsrf),itau_w, |
---|
144 | $ zx_tmp_fi2d) |
---|
145 | C |
---|
146 | zx_tmp_fi2d(1 : klon) = falbe( 1 : klon, nsrf) |
---|
147 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
148 | CALL histwrite_phy(nid_ins,"albe_"//clnsurf(nsrf),itau_w, |
---|
149 | $ zx_tmp_fi2d) |
---|
150 | C |
---|
151 | END DO |
---|
152 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, albsol,zx_tmp_2d) |
---|
153 | CALL histwrite_phy(nid_ins,"albs",itau_w,albsol) |
---|
154 | |
---|
155 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, albsollw,zx_tmp_2d) |
---|
156 | CALL histwrite_phy(nid_ins,"albslw",itau_w,albsollw) |
---|
157 | |
---|
158 | c |
---|
159 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxsnow,zx_tmp_2d) |
---|
160 | CALL histwrite_phy(nid_ins,"snow_mass",itau_w,zxsnow) |
---|
161 | c |
---|
162 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxrugs,zx_tmp_2d) |
---|
163 | CALL histwrite_phy(nid_ins,"rugs",itau_w,zxrugs) |
---|
164 | c |
---|
165 | c Champs 3D: |
---|
166 | c |
---|
167 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, t_seri, zx_tmp_3d) |
---|
168 | CALL histwrite_phy(nid_ins,"temp",itau_w,t_seri) |
---|
169 | c |
---|
170 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, u_seri, zx_tmp_3d) |
---|
171 | CALL histwrite_phy(nid_ins,"vitu",itau_w,u_seri) |
---|
172 | c |
---|
173 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, v_seri, zx_tmp_3d) |
---|
174 | CALL histwrite_phy(nid_ins,"vitv",itau_w,v_seri) |
---|
175 | c |
---|
176 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zphi, zx_tmp_3d) |
---|
177 | CALL histwrite_phy(nid_ins,"geop",itau_w,zphi) |
---|
178 | c |
---|
179 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, pplay, zx_tmp_3d) |
---|
180 | CALL histwrite_phy(nid_ins,"pres",itau_w,pplay) |
---|
181 | c |
---|
182 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_t_vdf, zx_tmp_3d) |
---|
183 | CALL histwrite_phy(nid_ins,"dtvdf",itau_w,d_t_vdf) |
---|
184 | c |
---|
185 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_q_vdf, zx_tmp_3d) |
---|
186 | CALL histwrite_phy(nid_ins,"dqvdf",itau_w,d_q_vdf) |
---|
187 | |
---|
188 | c |
---|
189 | if (ok_sync) then |
---|
190 | call histsync(nid_ins) |
---|
191 | endif |
---|
192 | ENDIF |
---|