[524] | 1 | c |
---|
[644] | 2 | c $Header$ |
---|
| 3 | c |
---|
| 4 | if (ok_journe) THEN |
---|
| 5 | c |
---|
[524] | 6 | ndex2d = 0 |
---|
| 7 | ndex3d = 0 |
---|
| 8 | c |
---|
| 9 | c Champs 2D: |
---|
| 10 | c |
---|
| 11 | itau_w = itau_phy + itap |
---|
| 12 | |
---|
| 13 | c |
---|
| 14 | IF(lev_histday.GE.1) THEN |
---|
| 15 | c |
---|
[704] | 16 | CALL histwrite_phy(nid_day,"phis",itau_w,pphis) |
---|
| 17 | |
---|
[524] | 18 | c |
---|
[704] | 19 | CALL histwrite_phy(nid_day,"aire",itau_w,airephy) |
---|
[524] | 20 | c |
---|
| 21 | DO i=1, klon |
---|
| 22 | zx_tmp_fi2d(i)=pctsrf(i,is_ter)+pctsrf(i,is_lic) |
---|
| 23 | ENDDO |
---|
| 24 | c |
---|
[704] | 25 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 26 | CALL histwrite_phy(nid_day,"contfracATM",itau_w,zx_tmp_fi2d) |
---|
[524] | 27 | c |
---|
[704] | 28 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,pctsrf_new(:,is_ter),zx_tmp_2d) |
---|
| 29 | CALL histwrite_phy(nid_day,"contfracOR",itau_w, |
---|
| 30 | & pctsrf_new(:,is_ter)) |
---|
[524] | 31 | c |
---|
[704] | 32 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxtsol,zx_tmp_2d) |
---|
| 33 | CALL histwrite_phy(nid_day,"tsol",itau_w,zxtsol) |
---|
[524] | 34 | C |
---|
[704] | 35 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zt2m,zx_tmp_2d) |
---|
| 36 | CALL histwrite_phy(nid_day,"t2m",itau_w,zt2m) |
---|
[524] | 37 | c |
---|
| 38 | c En attendant un eventuel debugage. |
---|
| 39 | |
---|
[704] | 40 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zt2m,zx_tmp_2d) |
---|
| 41 | CALL histwrite_phy(nid_day,"t2m_min",itau_w,zt2m) |
---|
[524] | 42 | c |
---|
[704] | 43 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zt2m,zx_tmp_2d) |
---|
| 44 | CALL histwrite_phy(nid_day,"t2m_max",itau_w,zt2m) |
---|
[524] | 45 | c |
---|
| 46 | DO i = 1, klon |
---|
| 47 | zx_tmp_fi2d(i) = rain_lsc(i) + snow_lsc(i) |
---|
| 48 | ENDDO |
---|
[704] | 49 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 50 | CALL histwrite_phy(nid_day,"plul",itau_w,zx_tmp_fi2d) |
---|
[524] | 51 | c |
---|
| 52 | DO i = 1, klon |
---|
| 53 | zx_tmp_fi2d(i) = rain_con(i) + snow_con(i) |
---|
| 54 | ENDDO |
---|
[704] | 55 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 56 | CALL histwrite_phy(nid_day,"pluc",itau_w,zx_tmp_fi2d) |
---|
[524] | 57 | c |
---|
[704] | 58 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, snow_lsc,zx_tmp_2d) |
---|
| 59 | CALL histwrite_phy(nid_day,"snowl",itau_w,snow_lsc) |
---|
[524] | 60 | c |
---|
| 61 | IF(1.EQ.0) THEN |
---|
[704] | 62 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, snow_con,zx_tmp_2d) |
---|
| 63 | CALL histwrite_phy(nid_day,"snowc",itau_w,snow_con) |
---|
[524] | 64 | ENDIF |
---|
| 65 | c |
---|
[704] | 66 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxfluxlat,zx_tmp_2d) |
---|
| 67 | CALL histwrite_phy(nid_day,"flat",itau_w,zxfluxlat) |
---|
[524] | 68 | c |
---|
| 69 | DO i = 1, klon |
---|
| 70 | zx_tmp_fi2d(i) = pctsrf(i,is_sic) |
---|
| 71 | ENDDO |
---|
| 72 | c |
---|
[704] | 73 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 74 | CALL histwrite_phy(nid_day,"sicf",itau_w,zx_tmp_fi2d) |
---|
[524] | 75 | c |
---|
[704] | 76 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zq2m,zx_tmp_2d) |
---|
| 77 | CALL histwrite_phy(nid_day,"q2m",itau_w,zq2m) |
---|
[524] | 78 | c |
---|
[704] | 79 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zu10m,zx_tmp_2d) |
---|
| 80 | CALL histwrite_phy(nid_day,"u10m",itau_w,zu10m) |
---|
[524] | 81 | c |
---|
[704] | 82 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zv10m,zx_tmp_2d) |
---|
| 83 | CALL histwrite_phy(nid_day,"v10m",itau_w,zv10m) |
---|
[524] | 84 | c |
---|
| 85 | DO i=1, klon |
---|
| 86 | zx_tmp_fi2d(i)=SQRT(zu10m(i)*zu10m(i)+zv10m(i)*zv10m(i)) |
---|
| 87 | ENDDO |
---|
[704] | 88 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 89 | CALL histwrite_phy(nid_day,"wind10m",itau_w,zx_tmp_fi2d) |
---|
[524] | 90 | c |
---|
[704] | 91 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 92 | CALL histwrite_phy(nid_day,"wind10max",itau_w,zx_tmp_fi2d) |
---|
[524] | 93 | c |
---|
| 94 | DO i=1, klon |
---|
| 95 | zx_tmp_fi2d(i) = paprs(i,1) |
---|
| 96 | ENDDO |
---|
[704] | 97 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 98 | CALL histwrite_phy(nid_day,"psol",itau_w,zx_tmp_fi2d) |
---|
[524] | 99 | c |
---|
| 100 | DO i=1, klon |
---|
| 101 | zx_tmp_fi2d(i) = (rain_fall(i) + snow_fall(i)) |
---|
| 102 | ENDDO |
---|
[704] | 103 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 104 | CALL histwrite_phy(nid_day,"precip",itau_w,zx_tmp_fi2d) |
---|
[524] | 105 | c |
---|
[704] | 106 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, snow_fall,zx_tmp_2d) |
---|
| 107 | CALL histwrite_phy(nid_day,"snowf",itau_w,snow_fall) |
---|
[524] | 108 | c |
---|
[644] | 109 | cIM: 140404 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxsnow,zx_tmp_2d) |
---|
| 110 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, zsnow_mass,zx_tmp_2d) |
---|
| 111 | c CALL histwrite(nid_day,"snow_mass",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
| 112 | c . ndex2d) |
---|
[524] | 113 | c |
---|
[704] | 114 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, evap,zx_tmp_2d) |
---|
| 115 | CALL histwrite_phy(nid_day,"evap",itau_w,evap) |
---|
[524] | 116 | c |
---|
[704] | 117 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, topsw,zx_tmp_2d) |
---|
| 118 | CALL histwrite_phy(nid_day,"tops",itau_w,topsw) |
---|
[524] | 119 | c |
---|
[704] | 120 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, toplw,zx_tmp_2d) |
---|
| 121 | CALL histwrite_phy(nid_day,"topl",itau_w,toplw) |
---|
[524] | 122 | c |
---|
[704] | 123 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, solsw,zx_tmp_2d) |
---|
| 124 | CALL histwrite_phy(nid_day,"sols",itau_w,solsw) |
---|
[524] | 125 | c |
---|
[704] | 126 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollw,zx_tmp_2d) |
---|
| 127 | CALL histwrite_phy(nid_day,"soll",itau_w,sollw) |
---|
[524] | 128 | c |
---|
[704] | 129 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, radsol,zx_tmp_2d) |
---|
| 130 | CALL histwrite_phy(nid_day,"radsol",itau_w,radsol) |
---|
[684] | 131 | c |
---|
[704] | 132 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldl,zx_tmp_2d) |
---|
| 133 | CALL histwrite_phy(nid_day,"cldl",itau_w,cldl) |
---|
[524] | 134 | c |
---|
[704] | 135 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldm,zx_tmp_2d) |
---|
| 136 | CALL histwrite_phy(nid_day,"cldm",itau_w,cldm) |
---|
[524] | 137 | c |
---|
[704] | 138 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldh,zx_tmp_2d) |
---|
| 139 | CALL histwrite_phy(nid_day,"cldh",itau_w,cldh) |
---|
[524] | 140 | c |
---|
[704] | 141 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldt,zx_tmp_2d) |
---|
| 142 | CALL histwrite_phy(nid_day,"cldt",itau_w,cldt) |
---|
[524] | 143 | c |
---|
[704] | 144 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldq,zx_tmp_2d) |
---|
| 145 | CALL histwrite_phy(nid_day,"cldq",itau_w,cldq) |
---|
[524] | 146 | c |
---|
[704] | 147 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, prw,zx_tmp_2d) |
---|
| 148 | CALL histwrite_phy(nid_day,"prw",itau_w,prw) |
---|
[524] | 149 | |
---|
| 150 | c Ecriture de champs dynamiques sur des niveaux de pression |
---|
[644] | 151 | c DO k=1, nlevENS |
---|
| 152 | DO k=1, nlevSTD |
---|
[524] | 153 | c |
---|
[644] | 154 | c bb=clevSTD(k) |
---|
| 155 | c |
---|
| 156 | IF(k.GE.2.AND.k.LE.12) bb2=clevSTD(k) |
---|
| 157 | IF(k.GE.13.AND.k.LE.17) bb3=clevSTD(k) |
---|
| 158 | c aa=clevSTD(k) |
---|
| 159 | c bb=aa(1:lnblnk1(aa)) |
---|
| 160 | c ENDIF |
---|
| 161 | c |
---|
| 162 | IF(bb2.EQ."850".OR.bb2.EQ."700" |
---|
| 163 | $ .OR.bb2.EQ."500".OR.bb2.EQ."200") THEN |
---|
| 164 | c |
---|
[704] | 165 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,usumSTD(:,k,1),zx_tmp_2d) |
---|
| 166 | CALL histwrite_phy(nid_day,"u"//bb2,itau_w,usumSTD(:,k,1)) |
---|
[524] | 167 | c |
---|
[704] | 168 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,vsumSTD(:,k,1),zx_tmp_2d) |
---|
| 169 | CALL histwrite_phy(nid_day,"v"//bb2,itau_w,vsumSTD(:,k,1)) |
---|
[524] | 170 | c |
---|
[644] | 171 | ENDIF !(bb2.EQ."850".OR.bb2.EQ."700".OR.bb2.EQ."500".OR.bb2.EQ."200") THEN |
---|
[524] | 172 | c |
---|
[644] | 173 | c w500 |
---|
[524] | 174 | c |
---|
[644] | 175 | IF(bb2.EQ."500") THEN |
---|
[524] | 176 | c |
---|
[704] | 177 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,wsumSTD(:,k,1),zx_tmp_2d) |
---|
| 178 | CALL histwrite_phy(nid_day,"w"//bb2,itau_w,wsumSTD(:,k,1)) |
---|
[524] | 179 | c |
---|
[704] | 180 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,phisumSTD(:,k,1),zx_tmp_2d) |
---|
| 181 | CALL histwrite_phy(nid_day,"phi"//bb2,itau_w,phisumSTD(:,k,1)) |
---|
[644] | 182 | |
---|
| 183 | ENDIF !(bb2.EQ."500") THEN |
---|
[524] | 184 | c |
---|
[644] | 185 | ENDDO !nlevSTD |
---|
[524] | 186 | c |
---|
[704] | 187 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, slp,zx_tmp_2d) |
---|
| 188 | CALL histwrite_phy(nid_day,"slp",itau_w,slp) |
---|
[524] | 189 | |
---|
[704] | 190 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,cape,zx_tmp_2d) |
---|
| 191 | CALL histwrite_phy(nid_day,"cape_max",itau_w,cape) |
---|
[524] | 192 | c |
---|
[704] | 193 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollwdown,zx_tmp_2d) |
---|
| 194 | CALL histwrite_phy(nid_day,"solldown",itau_w,sollwdown) |
---|
[524] | 195 | c |
---|
| 196 | DO i=1, klon |
---|
| 197 | zx_tmp_fi2d(i)=-1*sens(i) |
---|
| 198 | ENDDO |
---|
[704] | 199 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 200 | CALL histwrite_phy(nid_day,"sens",itau_w,zx_tmp_fi2d) |
---|
[524] | 201 | c |
---|
| 202 | zx_tmp_fi2d(1 : klon) = swdn(1 : klon, 1) |
---|
| 203 | |
---|
[704] | 204 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 205 | CALL histwrite_phy(nid_day, "SWdnSFC",itau_w,zx_tmp_fi2d) |
---|
[524] | 206 | c |
---|
[644] | 207 | IF (OCEAN.EQ.'force ') THEN |
---|
| 208 | c |
---|
| 209 | DO i=1, klon |
---|
| 210 | IF((pctsrf(i,is_oce).GT.epsfra).OR. |
---|
| 211 | . (pctsrf(i,is_sic).GT.epsfra)) THEN |
---|
| 212 | zx_tmp_fi2d(i) = (radsol(i) + fluxo(i))*pctsrf(i,is_oce)+ |
---|
| 213 | . fluxg(i)*pctsrf(i,is_sic) |
---|
| 214 | ELSE |
---|
| 215 | zx_tmp_fi2d(i) = 1.E+20 |
---|
| 216 | ENDIF |
---|
| 217 | ENDDO |
---|
[704] | 218 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 219 | CALL histwrite_phy(nid_day,"lmt_bils",itau_w, zx_tmp_fi2d) |
---|
[644] | 220 | c |
---|
| 221 | ELSE IF (OCEAN.EQ.'slab ') THEN |
---|
| 222 | c |
---|
| 223 | DO i=1, klon |
---|
| 224 | IF((pctsrf(i,is_oce).GT.epsfra).OR. |
---|
| 225 | . (pctsrf(i,is_sic).GT.epsfra)) THEN |
---|
| 226 | zx_tmp_fi2d(i) = (radsol(i) + fluxo(i))*pctsrf(i,is_oce)+ |
---|
| 227 | . fluxg(i)*pctsrf(i,is_sic) |
---|
| 228 | ELSE |
---|
| 229 | zx_tmp_fi2d(i) = 1.E+20 |
---|
| 230 | ENDIF |
---|
| 231 | ENDDO |
---|
[704] | 232 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 233 | CALL histwrite_phy(nid_day,"slab_bils",itau_w,zx_tmp_fi2d) |
---|
[644] | 234 | c |
---|
| 235 | DO i=1, klon |
---|
| 236 | IF(pctsrf(i,is_oce).GT.epsfra.OR. |
---|
| 237 | $ pctsrf(i,is_sic).GT.epsfra) THEN |
---|
| 238 | zx_tmp_fi2d(i)=tslab(i) |
---|
| 239 | ELSE |
---|
| 240 | zx_tmp_fi2d(i) = 1.E+20 |
---|
| 241 | ENDIF |
---|
| 242 | ENDDO !i=1, klon |
---|
[704] | 243 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 244 | CALL histwrite_phy(nid_day,"tslab",itau_w,zx_tmp_fi2d) |
---|
[644] | 245 | c |
---|
[704] | 246 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, seaice,zx_tmp_2d) |
---|
| 247 | CALL histwrite_phy(nid_day,"seaice",itau_w,seaice) |
---|
[644] | 248 | c |
---|
[704] | 249 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, seaice/1000.,zx_tmp_2d) |
---|
| 250 | CALL histwrite_phy(nid_day,"siceh",itau_w,seaice/1000.) |
---|
[644] | 251 | c |
---|
| 252 | ENDIF !(OCEAN.EQ.'slab ') THEN |
---|
| 253 | c |
---|
| 254 | DO i=1, klon |
---|
| 255 | IF (pctsrf(i,is_oce).GT.epsfra) THEN |
---|
| 256 | zx_tmp_fi2d(i) = fluxo(i) |
---|
| 257 | ELSE |
---|
[684] | 258 | zx_tmp_fi2d(i) = 0. |
---|
[644] | 259 | ENDIF |
---|
| 260 | ENDDO |
---|
| 261 | c |
---|
[704] | 262 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 263 | CALL histwrite_phy(nid_day,"fluxo",itau_w,zx_tmp_fi2d) |
---|
[644] | 264 | c |
---|
| 265 | DO i=1, klon |
---|
| 266 | IF (pctsrf(i,is_sic).GT.epsfra) THEN |
---|
| 267 | zx_tmp_fi2d(i) = fluxg(i) |
---|
| 268 | ELSE |
---|
[684] | 269 | zx_tmp_fi2d(i) = 0. |
---|
[644] | 270 | ENDIF |
---|
| 271 | ENDDO |
---|
| 272 | c |
---|
[704] | 273 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 274 | CALL histwrite_phy(nid_day,"fluxg",itau_w,zx_tmp_fi2d) |
---|
[644] | 275 | c |
---|
[524] | 276 | ENDIF !lev_histday.GE.1 |
---|
| 277 | c |
---|
| 278 | IF(lev_histday.GE.2) THEN |
---|
| 279 | c |
---|
[704] | 280 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, bils,zx_tmp_2d) |
---|
| 281 | CALL histwrite_phy(nid_day,"bils",itau_w, bils) |
---|
[524] | 282 | c |
---|
[704] | 283 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, fder,zx_tmp_2d) |
---|
| 284 | CALL histwrite_phy(nid_day,"fder",itau_w,fder) |
---|
[524] | 285 | c |
---|
| 286 | ENDIF !lev_histday.GE.2 |
---|
| 287 | c |
---|
| 288 | IF(lev_histday.GE.3) THEN |
---|
| 289 | c================================================================= |
---|
| 290 | c ECRITURE DES CHAMPS 3D |
---|
| 291 | c================================================================= |
---|
| 292 | |
---|
| 293 | c |
---|
| 294 | c Champs 3D: |
---|
| 295 | c |
---|
[704] | 296 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, t_seri, zx_tmp_3d) |
---|
| 297 | CALL histwrite_phy(nid_day,"temp",itau_w,t_seri) |
---|
[524] | 298 | c |
---|
[704] | 299 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, qx(1,1,ivap), zx_tmp_3d) |
---|
| 300 | CALL histwrite_phy(nid_day,"ovap",itau_w,qx(:,:,ivap)) |
---|
[524] | 301 | c |
---|
[704] | 302 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zphi, zx_tmp_3d) |
---|
| 303 | CALL histwrite_phy(nid_day,"geop",itau_w,zphi) |
---|
[524] | 304 | c |
---|
[704] | 305 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, u_seri, zx_tmp_3d) |
---|
| 306 | CALL histwrite_phy(nid_day,"vitu",itau_w,u_seri) |
---|
[524] | 307 | c |
---|
[704] | 308 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, v_seri, zx_tmp_3d) |
---|
| 309 | CALL histwrite_phy(nid_day,"vitv",itau_w,v_seri) |
---|
[524] | 310 | c |
---|
[704] | 311 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, omega, zx_tmp_3d) |
---|
| 312 | CALL histwrite_phy(nid_day,"vitw",itau_w,omega) |
---|
[524] | 313 | c |
---|
[704] | 314 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, pplay, zx_tmp_3d) |
---|
| 315 | CALL histwrite_phy(nid_day,"pres",itau_w,pplay) |
---|
[524] | 316 | c |
---|
| 317 | ENDIF !lev_histday.GE.3 |
---|
| 318 | c================================================================= |
---|
| 319 | c FIN ECRITURE DES CHAMPS 3D |
---|
| 320 | c================================================================= |
---|
| 321 | IF(lev_histday.ge.4) THEN |
---|
| 322 | c================================================================= |
---|
| 323 | c |
---|
| 324 | c ECRITURE DES CHAMPS SUR LES SOUS SURFACES |
---|
| 325 | c |
---|
| 326 | c================================================================= |
---|
| 327 | zx_tmp_fi2d(1 : klon) = swup( 1 : klon, klevp1 ) |
---|
[704] | 328 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 329 | CALL histwrite_phy(nid_day, "SWupTOA",itau_w,zx_tmp_fi2d) |
---|
[524] | 330 | c |
---|
| 331 | zx_tmp_fi2d(1 : klon) = swup( 1 : klon, 1 ) |
---|
[704] | 332 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 333 | CALL histwrite_phy(nid_day, "SWupSFC",itau_w,zx_tmp_fi2d) |
---|
[524] | 334 | c |
---|
| 335 | zx_tmp_fi2d(1 : klon) = swdn( 1 : klon, klevp1 ) |
---|
[704] | 336 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 337 | CALL histwrite_phy(nid_day, "SWdnTOA",itau_w,zx_tmp_fi2d) |
---|
[524] | 338 | c |
---|
| 339 | zx_tmp_fi2d(1 : klon) = swup0( 1 : klon, klevp1 ) |
---|
[704] | 340 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 341 | CALL histwrite_phy(nid_day, "SWupTOAclr",itau_w,zx_tmp_fi2d) |
---|
[524] | 342 | c |
---|
| 343 | zx_tmp_fi2d(1 : klon) = swup0( 1 : klon, 1 ) |
---|
[704] | 344 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 345 | CALL histwrite_phy(nid_day, "SWupSFCclr",itau_w,zx_tmp_fi2d) |
---|
[524] | 346 | c |
---|
| 347 | zx_tmp_fi2d(1 : klon) = swdn0( 1 : klon, klevp1 ) |
---|
[704] | 348 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 349 | CALL histwrite_phy(nid_day, "SWdnTOAclr",itau_w,zx_tmp_fi2d) |
---|
[524] | 350 | c |
---|
| 351 | zx_tmp_fi2d(1 : klon) = swdn0( 1 : klon, 1 ) |
---|
[704] | 352 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 353 | CALL histwrite_phy(nid_day, "SWdnSFCclr",itau_w,zx_tmp_fi2d) |
---|
[524] | 354 | c |
---|
[684] | 355 | cIM AMMA-MIP |
---|
[704] | 356 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollwdown,zx_tmp_2d) |
---|
| 357 | CALL histwrite_phy(nid_day,"LWdnSFC",itau_w,sollwdown) |
---|
[684] | 358 | c |
---|
| 359 | zx_tmp_fi2d(1:klon)=sollwdown(1:klon)-sollw(1:klon) |
---|
[704] | 360 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 361 | CALL histwrite_phy(nid_day,"LWupSFC",itau_w,zx_tmp_fi2d) |
---|
[684] | 362 | c |
---|
| 363 | cIM IF (iflag_con.GE.3) THEN |
---|
| 364 | cIM ema_pct= 0. CALL gr_fi_ecrit(1, klon,iim,jjmp1, ema_pct,zx_tmp_2d) |
---|
[704] | 365 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, meanptop(:,1),zx_tmp_2d) |
---|
| 366 | CALL histwrite_phy(nid_day,"ptop",itau_w,meanptop(:,1)) |
---|
[684] | 367 | cIM ENDIF |
---|
| 368 | c |
---|
[524] | 369 | zx_tmp_fi2d(1 : klon) = ftsol(1 : klon, is_ter) |
---|
[704] | 370 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d ,zx_tmp_2d) |
---|
| 371 | CALL histwrite_phy(nid_day,"tter",itau_w,zx_tmp_fi2d) |
---|
[524] | 372 | c |
---|
| 373 | zx_tmp_fi2d(1 : klon) = ftsol(1 : klon, is_lic) |
---|
[704] | 374 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 375 | CALL histwrite_phy(nid_day,"tlic",itau_w,zx_tmp_fi2d) |
---|
[524] | 376 | c |
---|
| 377 | zx_tmp_fi2d(1 : klon) = ftsol(1 : klon, is_oce) |
---|
[704] | 378 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 379 | CALL histwrite_phy(nid_day,"toce",itau_w,zx_tmp_fi2d) |
---|
[524] | 380 | c |
---|
| 381 | zx_tmp_fi2d(1 : klon) = ftsol(1 : klon, is_sic) |
---|
[704] | 382 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 383 | CALL histwrite_phy(nid_day,"tsic",itau_w,zx_tmp_fi2d) |
---|
[524] | 384 | c |
---|
[532] | 385 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_ter) |
---|
[704] | 386 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 387 | CALL histwrite_phy(nid_day,"t2mter",itau_w,zx_tmp_fi2d) |
---|
[524] | 388 | c |
---|
| 389 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_ter) |
---|
[704] | 390 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 391 | CALL histwrite_phy(nid_day,"t2mter_min",itau_w,zx_tmp_fi2d) |
---|
[524] | 392 | c |
---|
| 393 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_ter) |
---|
[704] | 394 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 395 | CALL histwrite_phy(nid_day,"t2mter_max",itau_w,zx_tmp_fi2d) |
---|
[524] | 396 | c |
---|
| 397 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_lic) |
---|
[704] | 398 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 399 | CALL histwrite_phy(nid_day,"t2mlic",itau_w,zx_tmp_fi2d) |
---|
[524] | 400 | c |
---|
| 401 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_oce) |
---|
[704] | 402 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 403 | CALL histwrite_phy(nid_day,"t2moce",itau_w,zx_tmp_fi2d) |
---|
[524] | 404 | c |
---|
| 405 | zx_tmp_fi2d(1 : klon) = t2m(1 : klon, is_sic) |
---|
[704] | 406 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 407 | CALL histwrite_phy(nid_day,"t2msic",itau_w,zx_tmp_fi2d) |
---|
[524] | 408 | c |
---|
| 409 | zx_tmp_fi2d(1 : klon) = u10m(1 : klon, is_ter) |
---|
[704] | 410 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 411 | CALL histwrite_phy(nid_day,"u10mter",itau_w,zx_tmp_fi2d) |
---|
[524] | 412 | c |
---|
| 413 | zx_tmp_fi2d(1 : klon) = v10m(1 : klon, is_ter) |
---|
[704] | 414 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 415 | CALL histwrite_phy(nid_day,"v10mter",itau_w,zx_tmp_fi2d) |
---|
[524] | 416 | c |
---|
| 417 | zx_tmp_fi2d(1 : klon) = u10m(1 : klon, is_lic) |
---|
[704] | 418 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 419 | CALL histwrite_phy(nid_day,"u10mlic",itau_w,zx_tmp_fi2d) |
---|
[524] | 420 | c |
---|
| 421 | zx_tmp_fi2d(1 : klon) = v10m(1 : klon, is_lic) |
---|
[704] | 422 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 423 | CALL histwrite_phy(nid_day,"v10mlic",itau_w,zx_tmp_fi2d) |
---|
[524] | 424 | c |
---|
| 425 | zx_tmp_fi2d(1 : klon) = u10m(1 : klon, is_oce) |
---|
[704] | 426 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 427 | CALL histwrite_phy(nid_day,"u10moce",itau_w,zx_tmp_fi2d) |
---|
[524] | 428 | c |
---|
| 429 | zx_tmp_fi2d(1 : klon) = v10m(1 : klon, is_oce) |
---|
[704] | 430 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 431 | CALL histwrite_phy(nid_day,"v10moce",itau_w,zx_tmp_fi2d) |
---|
[524] | 432 | c |
---|
| 433 | zx_tmp_fi2d(1 : klon) = u10m(1 : klon, is_sic) |
---|
[704] | 434 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 435 | CALL histwrite_phy(nid_day,"u10msic",itau_w,zx_tmp_fi2d) |
---|
[524] | 436 | C |
---|
| 437 | zx_tmp_fi2d(1 : klon) = v10m(1 : klon, is_sic) |
---|
[704] | 438 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 439 | CALL histwrite_phy(nid_day,"v10msic",itau_w,zx_tmp_fi2d) |
---|
[524] | 440 | C |
---|
| 441 | DO nsrf = 1, nbsrf |
---|
| 442 | C |
---|
[644] | 443 | zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf)*100. |
---|
[704] | 444 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 445 | CALL histwrite_phy(nid_day,"pourc_"//clnsurf(nsrf),itau_w, |
---|
| 446 | & zx_tmp_fi2d) |
---|
[524] | 447 | C |
---|
[644] | 448 | zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf) |
---|
[704] | 449 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 450 | CALL histwrite_phy(nid_day,"fract_"//clnsurf(nsrf),itau_w, |
---|
| 451 | & zx_tmp_fi2d) |
---|
[644] | 452 | C |
---|
[524] | 453 | zx_tmp_fi2d(1 : klon) = ftsol( 1 : klon, nsrf) |
---|
[704] | 454 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 455 | CALL histwrite_phy(nid_day,"tsol_"//clnsurf(nsrf),itau_w, |
---|
| 456 | $ zx_tmp_fi2d) |
---|
[524] | 457 | C |
---|
| 458 | zx_tmp_fi2d(1 : klon) = fluxt( 1 : klon, 1, nsrf) |
---|
[704] | 459 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 460 | CALL histwrite_phy(nid_day,"sens_"//clnsurf(nsrf),itau_w, |
---|
| 461 | $ zx_tmp_fi2d) |
---|
[524] | 462 | C |
---|
| 463 | zx_tmp_fi2d(1 : klon) = fluxlat( 1 : klon, nsrf) |
---|
[704] | 464 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 465 | CALL histwrite_phy(nid_day,"lat_"//clnsurf(nsrf),itau_w, |
---|
| 466 | $ zx_tmp_fi2d) |
---|
[524] | 467 | C |
---|
| 468 | zx_tmp_fi2d(1 : klon) = fluxu( 1 : klon, 1, nsrf) |
---|
[704] | 469 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 470 | CALL histwrite_phy(nid_day,"taux_"//clnsurf(nsrf),itau_w, |
---|
| 471 | $ zx_tmp_fi2d) |
---|
[524] | 472 | C |
---|
| 473 | zx_tmp_fi2d(1 : klon) = fluxv( 1 : klon, 1, nsrf) |
---|
[704] | 474 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 475 | CALL histwrite_phy(nid_day,"tauy_"//clnsurf(nsrf),itau_w, |
---|
| 476 | $ zx_tmp_fi2d) |
---|
[524] | 477 | C |
---|
| 478 | zx_tmp_fi2d(1 : klon) = falbe( 1 : klon, nsrf) |
---|
[704] | 479 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 480 | CALL histwrite_phy(nid_day,"albe_"//clnsurf(nsrf),itau_w, |
---|
| 481 | $ zx_tmp_fi2d) |
---|
[524] | 482 | C |
---|
| 483 | zx_tmp_fi2d(1 : klon) = frugs( 1 : klon, nsrf) |
---|
[704] | 484 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 485 | CALL histwrite_phy(nid_day,"rugs_"//clnsurf(nsrf),itau_w, |
---|
| 486 | $ zx_tmp_fi2d) |
---|
[524] | 487 | C |
---|
| 488 | END DO |
---|
| 489 | c================================================================= |
---|
| 490 | c FIN ECRITURE DES CHAMPS SUR LES SOUS SURFACES |
---|
| 491 | c================================================================= |
---|
| 492 | ENDIF !lev_histday.GE.4 |
---|
| 493 | c |
---|
[644] | 494 | IF(lev_histday.GE.5) THEN !lev_histday.GE.5 |
---|
| 495 | c |
---|
| 496 | c rajout sorties F. Aires |
---|
| 497 | c |
---|
[704] | 498 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, topsw0,zx_tmp_2d) |
---|
| 499 | CALL histwrite_phy(nid_day,"tops0",itau_w,topsw0) |
---|
[644] | 500 | c |
---|
[704] | 501 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, toplw0,zx_tmp_2d) |
---|
| 502 | CALL histwrite_phy(nid_day,"topl0",itau_w,toplw0) |
---|
[644] | 503 | c |
---|
[704] | 504 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, solsw0,zx_tmp_2d) |
---|
| 505 | CALL histwrite_phy(nid_day,"sols0",itau_w,solsw0) |
---|
[644] | 506 | c |
---|
[704] | 507 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollw0,zx_tmp_2d) |
---|
| 508 | CALL histwrite_phy(nid_day,"soll0",itau_w, sollw0) |
---|
[644] | 509 | c |
---|
[704] | 510 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, cldfra, zx_tmp_3d) |
---|
| 511 | CALL histwrite_phy(nid_day,"rneb",itau_w,cldfra) |
---|
[644] | 512 | c |
---|
[704] | 513 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, rnebcon, zx_tmp_3d) |
---|
| 514 | CALL histwrite_phy(nid_day,"rnebcon",itau_w,rnebcon) |
---|
[644] | 515 | c |
---|
[704] | 516 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, flwc,zx_tmp_3d) |
---|
| 517 | CALL histwrite_phy(nid_day,"lwcon",itau_w,flwc) |
---|
[644] | 518 | c |
---|
[704] | 519 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, fiwc,zx_tmp_3d) |
---|
| 520 | CALL histwrite_phy(nid_day,"iwcon",itau_w,fiwc) |
---|
[644] | 521 | c |
---|
| 522 | zx_tmp_fi2d(1:klon) = flwp(1:klon) |
---|
[704] | 523 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 524 | CALL histwrite_phy(nid_day,"lwp",itau_w,zx_tmp_fi2d) |
---|
[644] | 525 | c |
---|
| 526 | zx_tmp_fi2d(1:klon) = fiwp(1:klon) |
---|
[704] | 527 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 528 | CALL histwrite_phy(nid_day,"iwp",itau_w,zx_tmp_fi2d) |
---|
[644] | 529 | c |
---|
[704] | 530 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1, meantaucld,zx_tmp_2d) |
---|
| 531 | CALL histwrite_phy(nid_day,"meantaucld",itau_w,meantaucld) |
---|
[644] | 532 | c |
---|
[704] | 533 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, cldtau,zx_tmp_3d) |
---|
| 534 | CALL histwrite_phy(nid_day,"cldtau",itau_w,cldtau) |
---|
[644] | 535 | c |
---|
[704] | 536 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, cldemi,zx_tmp_3d) |
---|
| 537 | CALL histwrite_phy(nid_day,"cldemi",itau_w,cldemi) |
---|
[644] | 538 | c |
---|
[684] | 539 | c |
---|
| 540 | cIM: 101003 : K/30min ==> K/s |
---|
| 541 | zx_tmp_fi3d(1:klon,1:klev)=d_t_con(1:klon,1:klev)/pdtphys |
---|
[704] | 542 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
| 543 | CALL histwrite_phy(nid_day,"dtcon",itau_w,zx_tmp_fi3d) |
---|
[684] | 544 | c |
---|
| 545 | zx_tmp_fi3d(1:klon,1:klev)=d_q_con(1:klon,1:klev)/pdtphys |
---|
[704] | 546 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
| 547 | CALL histwrite_phy(nid_day,"dqcon",itau_w,zx_tmp_fi3d) |
---|
[684] | 548 | c |
---|
| 549 | DO i=1, klon |
---|
| 550 | zx_tmp_2d(i)=MIN(100.,rh2m(i)*100.) |
---|
| 551 | ENDDO |
---|
| 552 | c |
---|
[704] | 553 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1, zx_tmp_2d,zx_tmp_2d) |
---|
| 554 | CALL histwrite_phy(nid_day,"rh2m",itau_w,zx_tmp_2d) |
---|
[684] | 555 | c |
---|
[704] | 556 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1, qsat2m,zx_tmp_2d) |
---|
| 557 | CALL histwrite_phy(nid_day,"qsat2m",itau_w,qsat2m) |
---|
[684] | 558 | c |
---|
[704] | 559 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1, tpot,zx_tmp_2d) |
---|
| 560 | CALL histwrite_phy(nid_day,"tpot",itau_w,tpot) |
---|
[684] | 561 | c |
---|
[704] | 562 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1, tpote,zx_tmp_2d) |
---|
| 563 | CALL histwrite_phy(nid_day,"tpote",itau_w,tpote) |
---|
[684] | 564 | c |
---|
[644] | 565 | ENDIF !lev_histday.GE.5 |
---|
[524] | 566 | c================================================================= |
---|
| 567 | c================================================================= |
---|
| 568 | c================================================================= |
---|
| 569 | c |
---|
| 570 | if (ok_sync) then |
---|
[735] | 571 | c$OMP MASTER |
---|
[524] | 572 | call histsync(nid_day) |
---|
[735] | 573 | c$OMP END MASTER |
---|
[524] | 574 | endif |
---|
| 575 | |
---|
| 576 | ENDIF |
---|