[524] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
| 4 | if (ok_hf) then |
---|
| 5 | |
---|
| 6 | c |
---|
| 7 | ndex2d = 0 |
---|
| 8 | ndex3d = 0 |
---|
| 9 | c |
---|
| 10 | itau_w = itau_phy + itap |
---|
| 11 | c |
---|
[644] | 12 | IF(type_run.EQ."CLIM".OR.type_run.EQ."ENSP") THEN |
---|
| 13 | c |
---|
[524] | 14 | IF(lev_histhf.GE.1) THEN |
---|
| 15 | c |
---|
[766] | 16 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, paire_ter, zx_tmp_2d) |
---|
| 17 | CALL histwrite_phy(nid_hf,"aireTER",itau_w,paire_ter) |
---|
[524] | 18 | c |
---|
| 19 | DO i=1, klon |
---|
| 20 | zx_tmp_fi2d(i)=pctsrf(i,is_ter)+pctsrf(i,is_lic) |
---|
| 21 | ENDDO |
---|
| 22 | c |
---|
[766] | 23 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 24 | CALL histwrite_phy(nid_hf,"contfracATM",itau_w,zx_tmp_fi2d) |
---|
[524] | 25 | c |
---|
[766] | 26 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,pctsrf_new(:,is_ter),zx_tmp_2d) |
---|
| 27 | CALL histwrite_phy(nid_hf,"contfracOR",itau_w, |
---|
| 28 | . pctsrf_new(:,is_ter)) |
---|
[524] | 29 | c |
---|
[766] | 30 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zt2m,zx_tmp_2d) |
---|
| 31 | CALL histwrite_phy(nid_hf,"t2m",itau_w,zt2m) |
---|
[524] | 32 | c |
---|
[766] | 33 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zq2m,zx_tmp_2d) |
---|
| 34 | CALL histwrite_phy(nid_hf,"q2m",itau_w,zq2m) |
---|
[524] | 35 | c |
---|
| 36 | DO i = 1, klon |
---|
| 37 | zx_tmp_fi2d(i) = paprs(i,1) |
---|
| 38 | ENDDO |
---|
[766] | 39 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 40 | CALL histwrite_phy(nid_hf,"psol",itau_w,zx_tmp_fi2d) |
---|
[524] | 41 | c |
---|
| 42 | DO i = 1, klon |
---|
| 43 | zx_tmp_fi2d(i) = rain_fall(i) + snow_fall(i) |
---|
| 44 | ENDDO |
---|
[766] | 45 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 46 | CALL histwrite_phy(nid_hf,"precip",itau_w,zx_tmp_fi2d) |
---|
[524] | 47 | c |
---|
| 48 | c ENSEMBLES BEG |
---|
[766] | 49 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxtsol,zx_tmp_2d) |
---|
| 50 | CALL histwrite_phy(nid_hf,"tsol",itau_w,zxtsol) |
---|
[524] | 51 | c |
---|
[766] | 52 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, slp,zx_tmp_2d) |
---|
| 53 | CALL histwrite_phy(nid_hf,"slp",itau_w,slp) |
---|
[524] | 54 | c |
---|
[766] | 55 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zu10m,zx_tmp_2d) |
---|
| 56 | CALL histwrite_phy(nid_hf,"u10m",itau_w,zu10m) |
---|
[644] | 57 | c |
---|
[766] | 58 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zv10m,zx_tmp_2d) |
---|
| 59 | CALL histwrite_phy(nid_hf,"v10m",itau_w,zv10m) |
---|
[524] | 60 | c |
---|
| 61 | DO i=1, klon |
---|
| 62 | zx_tmp_fi2d(i)=SQRT(zu10m(i)*zu10m(i)+zv10m(i)*zv10m(i)) |
---|
| 63 | ENDDO |
---|
[766] | 64 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 65 | CALL histwrite_phy(nid_hf,"wind10m",itau_w,zx_tmp_fi2d) |
---|
[524] | 66 | c |
---|
[644] | 67 | DO k=1, nlevSTD |
---|
| 68 | c |
---|
| 69 | c bb=clevSTD(k) |
---|
| 70 | c |
---|
| 71 | c IF(k.GE.2) THEN |
---|
| 72 | IF(k.GE.2.AND.k.LE.12) bb2=clevSTD(k) |
---|
| 73 | IF(k.GE.13.AND.k.LE.17) bb3=clevSTD(k) |
---|
| 74 | c aa=clevSTD(k) |
---|
| 75 | c bb=aa(1:lnblnk1(aa)) |
---|
| 76 | c ENDIF |
---|
| 77 | c |
---|
| 78 | IF(bb2.EQ."500") THEN |
---|
| 79 | c |
---|
[766] | 80 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, philevSTD(:,k),zx_tmp_2d) |
---|
| 81 | CALL histwrite_phy(nid_hf,"phi"//bb2,itau_w, philevSTD(:,k)) |
---|
[644] | 82 | ENDIF !bb2.EQ."500" |
---|
[524] | 83 | ENDDO |
---|
| 84 | c |
---|
| 85 | ENDIF !lev_histhf.GE.1 |
---|
| 86 | c |
---|
| 87 | IF(lev_histhf.GE.2) THEN |
---|
| 88 | c |
---|
[644] | 89 | cIM 140904 BEG |
---|
| 90 | DO i = 1, klon |
---|
| 91 | zx_tmp_fi2d(i) = cldt(i)*100. |
---|
| 92 | ENDDO |
---|
| 93 | cIM 140904 END |
---|
| 94 | cIM 140904 CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldt,zx_tmp_2d) |
---|
[766] | 95 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 96 | CALL histwrite_phy(nid_hf,"cldt",itau_w,zx_tmp_fi2d) |
---|
[524] | 97 | c |
---|
| 98 | zx_tmp_fi2d(1 : klon) = fsolsw( 1 : klon, is_ter) |
---|
[766] | 99 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 100 | CALL histwrite_phy(nid_hf,"SWnetOR",itau_w, zx_tmp_fi2d) |
---|
[591] | 101 | c |
---|
[888] | 102 | zx_tmp_fi2d(1:klon) = solsw(1:klon)/(1.-albsol1(1:klon)) |
---|
[766] | 103 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 104 | CALL histwrite_phy(nid_hf,"SWdownOR",itau_w, zx_tmp_fi2d) |
---|
[524] | 105 | c |
---|
[766] | 106 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollwdown,zx_tmp_2d) |
---|
| 107 | CALL histwrite_phy(nid_hf,"LWdownOR",itau_w,sollwdown) |
---|
[524] | 108 | c |
---|
| 109 | c |
---|
| 110 | ENDIF !lev_histhf.GE.2 |
---|
| 111 | c |
---|
| 112 | IF(lev_histhf.GE.3) THEN |
---|
| 113 | c |
---|
[644] | 114 | DO k=1, nlevSTD |
---|
[524] | 115 | c |
---|
[644] | 116 | c bb=clevSTD(k) |
---|
[524] | 117 | c |
---|
[644] | 118 | c IF(k.GE.2) THEN |
---|
| 119 | IF(k.GE.2.AND.k.LE.12) bb2=clevSTD(k) |
---|
| 120 | IF(k.GE.13.AND.k.LE.17) bb3=clevSTD(k) |
---|
| 121 | c aa=clevSTD(k) |
---|
| 122 | c bb=aa(1:lnblnk1(aa)) |
---|
| 123 | c ENDIF |
---|
| 124 | c |
---|
| 125 | IF(bb2.EQ."850".OR.bb2.EQ."700".OR. |
---|
| 126 | $ bb2.EQ."500".OR.bb2.EQ."200") THEN |
---|
| 127 | c |
---|
[766] | 128 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, tlevSTD(:,k),zx_tmp_2d) |
---|
| 129 | CALL histwrite_phy(nid_hf,"t"//bb2,itau_w, tlevSTD(:,k)) |
---|
[524] | 130 | c |
---|
[644] | 131 | IF(bb2.NE."500") THEN !bb2.NE."500" |
---|
| 132 | c |
---|
[766] | 133 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,philevSTD(:,k),zx_tmp_2d) |
---|
| 134 | CALL histwrite_phy(nid_hf,"phi"//bb2,itau_w,philevSTD(:,k)) |
---|
[644] | 135 | ENDIF !bb2.NE."500" |
---|
[524] | 136 | c |
---|
[766] | 137 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, qlevSTD(:,k),zx_tmp_2d) |
---|
| 138 | CALL histwrite_phy(nid_hf,"q"//bb2,itau_w, qlevSTD(:,k)) |
---|
[524] | 139 | c |
---|
[766] | 140 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, ulevSTD(:,k),zx_tmp_2d) |
---|
| 141 | CALL histwrite_phy(nid_hf,"u"//bb2,itau_w,ulevSTD(:,k)) |
---|
[524] | 142 | c |
---|
[766] | 143 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, vlevSTD(:,k),zx_tmp_2d) |
---|
| 144 | CALL histwrite_phy(nid_hf,"v"//bb2,itau_w, vlevSTD(:,k)) |
---|
[524] | 145 | c |
---|
[644] | 146 | ENDIF !bb2.EQ."850".OR.bb2.EQ."700" |
---|
[524] | 147 | ENDDO !nlevENS |
---|
| 148 | c |
---|
| 149 | IF(1.EQ.0) THEN |
---|
[766] | 150 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cdragm,zx_tmp_2d) |
---|
| 151 | CALL histwrite_phy(nid_hf,"cdrm",itau_w,cdragm) |
---|
[524] | 152 | c |
---|
[766] | 153 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cdragh,zx_tmp_2d) |
---|
| 154 | CALL histwrite_phy(nid_hf,"cdrh",itau_w,cdragh) |
---|
[524] | 155 | ENDIF !(1.EQ.0) THEN |
---|
| 156 | c |
---|
[591] | 157 | ENDIF !lev_histhf.GE.3 |
---|
| 158 | c |
---|
| 159 | IF(lev_histhf.GE.4) THEN |
---|
| 160 | c |
---|
[644] | 161 | #undef histhf3d |
---|
[591] | 162 | #define histhf3d |
---|
| 163 | #ifdef histhf3d |
---|
| 164 | #include "write_histhf3d.h" |
---|
| 165 | #endif |
---|
| 166 | c |
---|
| 167 | ENDIF !lev_histhf.GE.4 |
---|
| 168 | c |
---|
[644] | 169 | ELSE IF(type_run.EQ."AMIP".OR.type_run.EQ."CFMI") THEN |
---|
| 170 | c |
---|
| 171 | IF(lev_histhf.GE.1) THEN |
---|
| 172 | c |
---|
| 173 | DO k=1, nlevSTD |
---|
| 174 | c bb=clevSTD(k) |
---|
| 175 | c |
---|
| 176 | c IF(k.GE.2) THEN |
---|
| 177 | IF(k.GE.2.AND.k.LE.12) bb2=clevSTD(k) |
---|
| 178 | IF(k.GE.13.AND.k.LE.17) bb3=clevSTD(k) |
---|
| 179 | c aa=clevSTD(k) |
---|
| 180 | c bb=aa(1:lnblnk1(aa)) |
---|
| 181 | c ENDIF |
---|
| 182 | c |
---|
| 183 | IF(bb2.EQ."850".or.bb2.EQ."200") THEN |
---|
| 184 | c |
---|
[766] | 185 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, ulevSTD(:,k),zx_tmp_2d) |
---|
| 186 | CALL histwrite_phy(nid_hf,"u"//bb2,itau_w,ulevSTD(:,k)) |
---|
[644] | 187 | c |
---|
[766] | 188 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, vlevSTD(:,k),zx_tmp_2d) |
---|
| 189 | CALL histwrite_phy(nid_hf,"v"//bb2,itau_w,vlevSTD(:,k)) |
---|
[644] | 190 | c |
---|
| 191 | ENDIF !bb2.EQ."850".or.bb2.EQ."200" |
---|
| 192 | c |
---|
| 193 | ENDDO !nlevSTD |
---|
| 194 | c |
---|
[766] | 195 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, toplw,zx_tmp_2d) |
---|
| 196 | CALL histwrite_phy(nid_hf,"topl",itau_w,toplw) |
---|
[644] | 197 | c |
---|
| 198 | DO i = 1, klon |
---|
| 199 | zx_tmp_fi2d(i) = rain_fall(i) + snow_fall(i) |
---|
| 200 | ENDDO |
---|
[766] | 201 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 202 | CALL histwrite_phy(nid_hf,"precip",itau_w,zx_tmp_fi2d) |
---|
[644] | 203 | c |
---|
[766] | 204 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, slp,zx_tmp_2d) |
---|
| 205 | CALL histwrite_phy(nid_hf,"slp",itau_w,slp) |
---|
[644] | 206 | c |
---|
| 207 | cIM 280504 BEG |
---|
| 208 | ENDIF !(lev_histhf.GE.1) THEN |
---|
| 209 | c |
---|
| 210 | IF(lev_histhf.GE.2) THEN |
---|
| 211 | c |
---|
| 212 | DO k=1, nlevSTD |
---|
| 213 | c |
---|
| 214 | c bb=clevSTD(k) |
---|
| 215 | c |
---|
| 216 | c IF(k.GE.2) THEN |
---|
| 217 | IF(k.GE.2.AND.k.LE.12) bb2=clevSTD(k) |
---|
| 218 | IF(k.GE.13.AND.k.LE.17) bb3=clevSTD(k) |
---|
| 219 | c aa=clevSTD(k) |
---|
| 220 | c bb=aa(1:lnblnk1(aa)) |
---|
| 221 | c ENDIF |
---|
| 222 | c |
---|
| 223 | IF(bb2.EQ."850".or.bb2.EQ."500") THEN |
---|
| 224 | c |
---|
[766] | 225 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, tlevSTD(:,k),zx_tmp_2d) |
---|
| 226 | CALL histwrite_phy(nid_hf,"t"//bb2,itau_w,tlevSTD(:,k)) |
---|
[644] | 227 | c |
---|
[766] | 228 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, qlevSTD(:,k),zx_tmp_2d) |
---|
| 229 | CALL histwrite_phy(nid_hf,"q"//bb2,itau_w, qlevSTD(:,k)) |
---|
[644] | 230 | c |
---|
| 231 | ENDIF !bb2.EQ."850".or.bb2.EQ."500" |
---|
| 232 | c |
---|
| 233 | IF(bb2.EQ."500") THEN |
---|
| 234 | c |
---|
[766] | 235 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, philevSTD(:,k),zx_tmp_2d) |
---|
| 236 | CALL histwrite_phy(nid_hf,"phi"//bb2,itau_w, philevSTD(:,k)) |
---|
[644] | 237 | c |
---|
[766] | 238 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, wlevSTD(:,k),zx_tmp_2d) |
---|
| 239 | CALL histwrite_phy(nid_hf,"w"//bb2,itau_w, wlevSTD(:,k)) |
---|
[644] | 240 | c |
---|
| 241 | ENDIF !bb2.EQ."500" |
---|
| 242 | c |
---|
| 243 | IF(bb3.EQ."50") THEN |
---|
| 244 | c |
---|
[766] | 245 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, tlevSTD(:,k),zx_tmp_2d) |
---|
| 246 | CALL histwrite_phy(nid_hf,"t"//bb3,itau_w, tlevSTD(:,k)) |
---|
[644] | 247 | c |
---|
[766] | 248 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, ulevSTD(:,k),zx_tmp_2d) |
---|
| 249 | CALL histwrite_phy(nid_hf,"u"//bb3,itau_w, ulevSTD(:,k)) |
---|
[644] | 250 | c |
---|
[766] | 251 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, vlevSTD(:,k),zx_tmp_2d) |
---|
| 252 | CALL histwrite_phy(nid_hf,"v"//bb3,itau_w, vlevSTD(:,k)) |
---|
[644] | 253 | c |
---|
| 254 | ENDIF !bb3.EQ."50" |
---|
| 255 | c |
---|
| 256 | ENDDO !k=1, nlevSTD |
---|
| 257 | c |
---|
[766] | 258 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zu10m,zx_tmp_2d) |
---|
| 259 | CALL histwrite_phy(nid_hf,"u10m",itau_w,zu10m) |
---|
[644] | 260 | c |
---|
[766] | 261 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zv10m,zx_tmp_2d) |
---|
| 262 | CALL histwrite_phy(nid_hf,"v10m",itau_w,zv10m) |
---|
[644] | 263 | c |
---|
[766] | 264 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zt2m,zx_tmp_2d) |
---|
| 265 | CALL histwrite_phy(nid_hf,"t2m",itau_w, zt2m) |
---|
[644] | 266 | c |
---|
[766] | 267 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zq2m,zx_tmp_2d) |
---|
| 268 | CALL histwrite_phy(nid_hf,"q2m",itau_w,zq2m) |
---|
[644] | 269 | c |
---|
| 270 | DO i = 1, klon |
---|
| 271 | zx_tmp_fi2d(i) = paprs(i,1) |
---|
| 272 | ENDDO |
---|
[766] | 273 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 274 | CALL histwrite_phy(nid_hf,"psol",itau_w,zx_tmp_fi2d) |
---|
[644] | 275 | c |
---|
| 276 | cIM 140904 BEG |
---|
| 277 | DO i = 1, klon |
---|
| 278 | zx_tmp_fi2d(i) = cldt(i)*100. |
---|
| 279 | ENDDO |
---|
| 280 | cIM 140904 END |
---|
| 281 | cIM 140904 CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldt,zx_tmp_2d) |
---|
[766] | 282 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 283 | CALL histwrite_phy(nid_hf,"cldt",itau_w,zx_tmp_fi2d) |
---|
[644] | 284 | c |
---|
| 285 | zx_tmp_fi2d(1 : klon) = zxfluxu(1 : klon, 1) |
---|
[766] | 286 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 287 | CALL histwrite_phy(nid_hf,"taux",itau_w,zx_tmp_fi2d) |
---|
[644] | 288 | C |
---|
| 289 | zx_tmp_fi2d(1 : klon) = zxfluxv(1 : klon, 1) |
---|
[766] | 290 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 291 | CALL histwrite_phy(nid_hf,"tauy",itau_w,zx_tmp_fi2d) |
---|
[644] | 292 | c |
---|
[766] | 293 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, prw,zx_tmp_2d) |
---|
| 294 | CALL histwrite_phy(nid_hf,"prw",itau_w,prw) |
---|
[644] | 295 | c |
---|
| 296 | zx_tmp_fi2d(1:klon)=-1*sens(1:klon) |
---|
[766] | 297 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 298 | CALL histwrite_phy(nid_hf,"sens",itau_w,zx_tmp_fi2d) |
---|
[644] | 299 | c |
---|
[766] | 300 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxfluxlat,zx_tmp_2d) |
---|
| 301 | CALL histwrite_phy(nid_hf,"flat",itau_w,zxfluxlat) |
---|
[644] | 302 | c |
---|
| 303 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, zsnow_mass,zx_tmp_2d) |
---|
[766] | 304 | c CALL histwrite_phy(nid_hf,"snow_mass",itau_w,zsnow_mass) |
---|
[644] | 305 | c |
---|
| 306 | zx_tmp_fi2d(1 : klon) = swdn ( 1 : klon, 1 ) |
---|
[766] | 307 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 308 | CALL histwrite_phy(nid_hf, "SWdnSFC",itau_w,zx_tmp_fi2d) |
---|
[644] | 309 | c |
---|
| 310 | zx_tmp_fi2d(1 : klon) = swup ( 1 : klon, 1 ) |
---|
[766] | 311 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 312 | CALL histwrite_phy(nid_hf, "SWupSFC",itau_w,zx_tmp_fi2d) |
---|
[644] | 313 | c |
---|
[766] | 314 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollwdown,zx_tmp_2d) |
---|
| 315 | CALL histwrite_phy(nid_hf,"LWdnSFC",itau_w,sollwdown) |
---|
[644] | 316 | c |
---|
| 317 | cIM 090904 zx_tmp_fi2d(1:klon)=sollw(1:klon)+sollwdown(1:klon) |
---|
| 318 | cIM 130904 zx_tmp_fi2d(1:klon)=sollw(1:klon)-sollwdown(1:klon) |
---|
| 319 | zx_tmp_fi2d(1:klon)=sollwdown(1:klon)-sollw(1:klon) |
---|
[766] | 320 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 321 | CALL histwrite_phy(nid_hf,"LWupSFC",itau_w,zx_tmp_fi2d) |
---|
[644] | 322 | c |
---|
| 323 | zx_tmp_fi2d(1 : klon) = swdn ( 1 : klon, klevp1 ) |
---|
[766] | 324 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 325 | CALL histwrite_phy(nid_hf, "SWdnTOA",itau_w,zx_tmp_fi2d) |
---|
[644] | 326 | c |
---|
| 327 | zx_tmp_fi2d(1 : klon) = swup ( 1 : klon, klevp1 ) |
---|
[766] | 328 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 329 | CALL histwrite_phy(nid_hf, "SWupTOA",itau_w,zx_tmp_fi2d) |
---|
[644] | 330 | c |
---|
[776] | 331 | IF (is_sequential) THEN |
---|
[766] | 332 | cym CALL gr_fi_ecrit(nbteta,klon,iim,jjmp1,PVteta,zx_tmp_3dte) |
---|
[644] | 333 | DO k=1, nbteta |
---|
[782] | 334 | zx_tmp_fi2d(1:klon) = PVteta(1:klon,k) |
---|
[766] | 335 | CALL histwrite_phy(nid_hf,"PV"//ctetaSTD(k), |
---|
[782] | 336 | . itau_w,zx_tmp_fi2d) |
---|
[644] | 337 | ENDDO !k=1, nbteta |
---|
[766] | 338 | ENDIF |
---|
[644] | 339 | c |
---|
| 340 | c |
---|
| 341 | c planetary boundary layer height |
---|
| 342 | c |
---|
| 343 | c ENDIF !1.EQ.0 |
---|
| 344 | c |
---|
| 345 | ENDIF !(lev_histhf.GE.2) THEN |
---|
| 346 | cIM 280504 END |
---|
| 347 | c |
---|
| 348 | ENDIF !type_run |
---|
| 349 | c |
---|
| 350 | IF (ok_sync) THEN |
---|
[766] | 351 | c$OMP MASTER |
---|
[591] | 352 | call histsync(nid_hf) |
---|
[766] | 353 | c$OMP END MASTER |
---|
[644] | 354 | ENDIF |
---|
[591] | 355 | |
---|
[644] | 356 | ENDIF |
---|