[524] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
| 4 | ndex = 0 |
---|
| 5 | ndex2d = 0 |
---|
| 6 | ndex3d = 0 |
---|
| 7 | c |
---|
| 8 | zsto = pdtphys |
---|
| 9 | zout = pdtphys * FLOAT(ecrit_tra) |
---|
| 10 | itau_w = itau_phy + nstep |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | i = NINT(zout/zsto) |
---|
| 14 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,pphis,zx_tmp_2d) |
---|
| 15 | CALL histwrite(nid_tra,"phis",itau_w,zx_tmp_2d,iim*(jjm+1),ndex2d) |
---|
| 16 | C |
---|
| 17 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,airephy,zx_tmp_2d) |
---|
| 18 | CALL histwrite(nid_tra,"aire",itau_w,zx_tmp_2d,iim*(jjm+1),ndex2d) |
---|
| 19 | #ifdef INCA |
---|
| 20 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, ps,zx_tmp_2d) |
---|
| 21 | CALL histwrite(nid_tra,"ps",itau_w,zx_tmp_2d, |
---|
| 22 | . iim*(jjm+1),ndex2d) |
---|
| 23 | |
---|
| 24 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, ptrop,zx_tmp_2d) |
---|
| 25 | CALL histwrite(nid_tra,"ptrop",itau_w,zx_tmp_2d, |
---|
| 26 | . iim*(jjm+1),ndex2d) |
---|
| 27 | |
---|
| 28 | C 3d FIELDS |
---|
| 29 | |
---|
| 30 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,t_seri, zx_tmp_3d) |
---|
| 31 | CALL histwrite(nid_tra,"temp",itau_w,zx_tmp_3d, |
---|
| 32 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 33 | |
---|
| 34 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,u, zx_tmp_3d) |
---|
| 35 | CALL histwrite(nid_tra,"u",itau_w,zx_tmp_3d, |
---|
| 36 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 37 | |
---|
| 38 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,v, zx_tmp_3d) |
---|
| 39 | CALL histwrite(nid_tra,"v",itau_w,zx_tmp_3d, |
---|
| 40 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 41 | |
---|
| 42 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,sh, zx_tmp_3d) |
---|
| 43 | CALL histwrite(nid_tra,"h2o",itau_w,zx_tmp_3d, |
---|
| 44 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 45 | |
---|
| 46 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pdel, zx_tmp_3d) |
---|
| 47 | CALL histwrite(nid_tra,"pdel",itau_w,zx_tmp_3d, |
---|
| 48 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 49 | |
---|
| 50 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pplay, zx_tmp_3d) |
---|
| 51 | CALL histwrite(nid_tra,"pmid",itau_w,zx_tmp_3d, |
---|
| 52 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 53 | |
---|
[616] | 54 | ! Ajout Anne |
---|
[635] | 55 | #ifdef INCA_AER |
---|
[624] | 56 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,airm, zx_tmp_3d) |
---|
| 57 | CALL histwrite(nid_tra,"airm",itau_w,zx_tmp_3d, |
---|
| 58 | . iim*(jjm+1)*klev,ndex) |
---|
[635] | 59 | #endif |
---|
[616] | 60 | ! Fin ajout Anne |
---|
| 61 | |
---|
| 62 | #ifdef INCA |
---|
[524] | 63 | #ifdef INCAINFO |
---|
| 64 | DO it=1, phtcnt |
---|
| 65 | WRITE(str2,'(i2.2)') it |
---|
| 66 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,jrates(1,1,it), |
---|
| 67 | . zx_tmp_3d) |
---|
| 68 | CALL histwrite(nid_tra,"j"//str2,itau_w,zx_tmp_3d, |
---|
| 69 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 70 | ENDDO |
---|
| 71 | |
---|
| 72 | DO it=1, hetcnt |
---|
| 73 | WRITE(str2,'(i2.2)') it |
---|
| 74 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,hrates(1,1,it), |
---|
| 75 | . zx_tmp_3d) |
---|
| 76 | CALL histwrite(nid_tra,"w"//str2,itau_w,zx_tmp_3d, |
---|
| 77 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 78 | ENDDO |
---|
| 79 | |
---|
| 80 | DO it=1, extcnt |
---|
| 81 | WRITE(str2,'(i2.2)') it |
---|
| 82 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,extflx(1,1,it), |
---|
| 83 | . zx_tmp_3d) |
---|
| 84 | CALL histwrite(nid_tra,"ext"//str2,itau_w,zx_tmp_3d, |
---|
| 85 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 86 | ENDDO |
---|
| 87 | |
---|
| 88 | DO it=1, nfs |
---|
| 89 | WRITE(str2,'(i2.2)') it |
---|
| 90 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,invariants(1,1,it), |
---|
| 91 | . zx_tmp_3d) |
---|
| 92 | CALL histwrite(nid_tra,"INV"//str2,itau_w,zx_tmp_3d, |
---|
| 93 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 94 | ENDDO |
---|
| 95 | #else |
---|
| 96 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,jrates(1,1,2), |
---|
| 97 | . zx_tmp_3d) |
---|
| 98 | CALL histwrite(nid_tra,"jO3",itau_w,zx_tmp_3d, |
---|
| 99 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 100 | |
---|
| 101 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,jrates(1,1,4), |
---|
| 102 | . zx_tmp_3d) |
---|
| 103 | CALL histwrite(nid_tra,"jNO2",itau_w,zx_tmp_3d, |
---|
| 104 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 105 | |
---|
| 106 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,jrates(1,1,13), |
---|
| 107 | . zx_tmp_3d) |
---|
| 108 | CALL histwrite(nid_tra,"jH2O2",itau_w,zx_tmp_3d, |
---|
| 109 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 110 | |
---|
| 111 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,hrates(1,1,1), |
---|
| 112 | . zx_tmp_3d) |
---|
| 113 | CALL histwrite(nid_tra,"wHNO3",itau_w,zx_tmp_3d, |
---|
| 114 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 115 | |
---|
| 116 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,krates(1,1,1), |
---|
| 117 | . zx_tmp_3d) |
---|
| 118 | CALL histwrite(nid_tra,"kN2O5",itau_w,zx_tmp_3d, |
---|
| 119 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 120 | |
---|
| 121 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,extflx(1,1,1), |
---|
| 122 | . zx_tmp_3d) |
---|
| 123 | CALL histwrite(nid_tra,"LghtNO",itau_w,zx_tmp_3d, |
---|
| 124 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 125 | #endif |
---|
| 126 | DO it=1, grpcnt |
---|
| 127 | |
---|
| 128 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,nas(1,1,it),zx_tmp_3d) |
---|
| 129 | zx_tmp_3d = zx_tmp_3d * dry_mass / nadv_mass(it) |
---|
| 130 | CALL histwrite(nid_tra,grpsym(it),itau_w,zx_tmp_3d, |
---|
| 131 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 132 | ENDDO |
---|
| 133 | #endif |
---|
| 134 | |
---|
| 135 | #ifdef INCA_AER |
---|
| 136 | |
---|
| 137 | it = id_CIDUSTM |
---|
| 138 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,scavcoef_st(1,1,it), |
---|
| 139 | . zx_tmp_3d) |
---|
[616] | 140 | CALL histwrite(nid_tra2,"scavcoef_st",itau_w,zx_tmp_3d, |
---|
[524] | 141 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 142 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,scavcoef_cv(1,1,it), |
---|
| 143 | . zx_tmp_3d) |
---|
[616] | 144 | CALL histwrite(nid_tra2,"scavcoef_cv",itau_w,zx_tmp_3d, |
---|
[524] | 145 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 146 | |
---|
| 147 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,angst(1),zx_tmp_2d) |
---|
| 148 | CALL histwrite(nid_tra2,"AngstroemComp",itau_w,zx_tmp_2d, |
---|
| 149 | . iim*(jjm+1),ndex2d) |
---|
| 150 | |
---|
| 151 | #endif |
---|
| 152 | #endif |
---|
| 153 | |
---|
| 154 | DO it=1,nqmax |
---|
| 155 | C champs 2D |
---|
| 156 | #ifdef INCA |
---|
| 157 | IF ( prt_flag_ts(it) == 0 ) CYCLE |
---|
| 158 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, eflux(1,it),zx_tmp_2d) |
---|
| 159 | CALL histwrite(nid_tra,"Emi_"//solsym(it),itau_w,zx_tmp_2d, |
---|
| 160 | . iim*(jjm+1),ndex2d) |
---|
| 161 | |
---|
| 162 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, dvel(1,it),zx_tmp_2d) |
---|
| 163 | CALL histwrite(nid_tra,"Dep_"//solsym(it),itau_w,zx_tmp_2d, |
---|
| 164 | . iim*(jjm+1),ndex2d) |
---|
| 165 | #ifdef INCA_AER |
---|
| 166 | call diag(airephy,tr_seri) |
---|
| 167 | |
---|
| 168 | IF ((it .ge. trmx) .and. (it .le. trnx)) then |
---|
| 169 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,sflux(1,it),zx_tmp_2d) |
---|
| 170 | CALL histwrite(nid_tra2,"Sed_"//solsym(it),itau_w, |
---|
| 171 | . zx_tmp_2d,iim*(jjm+1),ndex2d) |
---|
| 172 | |
---|
| 173 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,dflux(1,it),zx_tmp_2d) |
---|
| 174 | CALL histwrite(nid_tra2,"Dry_"//solsym(it),itau_w,zx_tmp_2d, |
---|
| 175 | . iim*(jjm+1),ndex2d) |
---|
| 176 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,wflux(1,it),zx_tmp_2d) |
---|
| 177 | CALL histwrite(nid_tra2,"Wet_"//solsym(it),itau_w,zx_tmp_2d, |
---|
| 178 | . iim*(jjm+1),ndex2d) |
---|
| 179 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,wsflux(1,it),zx_tmp_2d) |
---|
| 180 | CALL histwrite(nid_tra2,"WetST_"//solsym(it),itau_w,zx_tmp_2d, |
---|
| 181 | . iim*(jjm+1),ndex2d) |
---|
| 182 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,wcflux(1,it),zx_tmp_2d) |
---|
| 183 | CALL histwrite(nid_tra2,"WetCV_"//solsym(it),itau_w,zx_tmp_2d, |
---|
| 184 | . iim*(jjm+1),ndex2d) |
---|
| 185 | |
---|
| 186 | CALL gr_fi_ecrit(klev, klon,iim,jjm+1,eflux_alt(1,1,it),zx_tmp_3d) |
---|
| 187 | CALL histwrite(nid_tra2,"Emi_alt_"//solsym(it),itau_w,zx_tmp_3d, |
---|
| 188 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 189 | |
---|
| 190 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,aload(1,it),zx_tmp_2d) |
---|
| 191 | CALL histwrite(nid_tra2,"Load_"//solsym(it),itau_w,zx_tmp_2d, |
---|
| 192 | . iim*(jjm+1),ndex2d) |
---|
| 193 | CALL histwrite(nid_tra3,"Inst_Load_"//solsym(it),itau_w,zx_tmp_2d, |
---|
| 194 | . iim*(jjm+1),ndex2d) |
---|
| 195 | |
---|
| 196 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,sconc(1,it),zx_tmp_2d) |
---|
| 197 | CALL histwrite(nid_tra2,"SConc_"//solsym(it),itau_w,zx_tmp_2d, |
---|
| 198 | . iim*(jjm+1),ndex2d) |
---|
| 199 | |
---|
| 200 | do la=1,las |
---|
| 201 | CALL gr_fi_ecrit(1, klon,iim,jjm+1,tausum(1,la,it),zx_tmp_2d) |
---|
| 202 | CALL histwrite(nid_tra2,"OD_"//cla(la)//solsym(it),itau_w,zx_tmp_2d, |
---|
| 203 | . iim*(jjm+1),ndex2d) |
---|
| 204 | enddo |
---|
| 205 | |
---|
| 206 | CALL gr_fi_ecrit(klev, klon,iim,jjm+1,md(1,1,it),zx_tmp_3d) |
---|
| 207 | CALL histwrite(nid_tra2,"MD_"//solsym(it),itau_w,zx_tmp_3d, |
---|
| 208 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 209 | |
---|
| 210 | endif |
---|
| 211 | #endif |
---|
| 212 | C champs 3D |
---|
| 213 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,tr_seri(1,1,it),zx_tmp_3d) |
---|
| 214 | |
---|
| 215 | !Prefer vmr to mmr for transported species |
---|
| 216 | if( adv_mass(it) /= 0. ) then |
---|
| 217 | #ifdef INCA_AER |
---|
| 218 | if (it .lt. trmx) then |
---|
| 219 | #endif |
---|
| 220 | zx_tmp_3d = zx_tmp_3d * dry_mass / adv_mass(it) |
---|
| 221 | #ifdef INCA_AER |
---|
| 222 | endif |
---|
| 223 | #endif |
---|
| 224 | else |
---|
[616] | 225 | #ifdef INCA |
---|
[524] | 226 | if ( solsym(it) == 'OX' ) then |
---|
| 227 | zx_tmp_3d = zx_tmp_3d * dry_mass / nadv_mass(id_o3) |
---|
| 228 | end if |
---|
| 229 | #endif |
---|
| 230 | end if |
---|
| 231 | |
---|
| 232 | CALL histwrite(nid_tra,solsym(it),itau_w,zx_tmp_3d, |
---|
| 233 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 234 | #else |
---|
| 235 | |
---|
| 236 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,tr_seri(1,1,it),zx_tmp_3d) |
---|
| 237 | CALL histwrite(nid_tra,tnom(it+2),itau_w,zx_tmp_3d, |
---|
| 238 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 239 | if (lessivage) THEN |
---|
| 240 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,flestottr(1,1,it),zx_tmp_3d) |
---|
| 241 | CALL histwrite(nid_tra,"fl"//tnom(it+2),itau_w,zx_tmp_3d, |
---|
| 242 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 243 | endif |
---|
[541] | 244 | |
---|
| 245 | c----Olivia |
---|
| 246 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,d_tr_th(1,1,it),zx_tmp_3d) |
---|
| 247 | CALL histwrite(nid_tra,"d_tr_th_"//tnom(it+2),itau_w,zx_tmp_3d, |
---|
| 248 | . iim*(jjm+1)*klev,ndex3d) |
---|
[619] | 249 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,d_tr_cv(1,1,it),zx_tmp_3d) |
---|
[541] | 250 | CALL histwrite(nid_tra,"d_tr_cv_"//tnom(it+2),itau_w,zx_tmp_3d, |
---|
| 251 | . iim*(jjm+1)*klev,ndex3d) |
---|
[619] | 252 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,d_tr_cl(1,1,it),zx_tmp_3d) |
---|
[541] | 253 | CALL histwrite(nid_tra,"d_tr_cl_"//tnom(it+2),itau_w,zx_tmp_3d, |
---|
| 254 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 255 | c---fin Olivia |
---|
| 256 | |
---|
[524] | 257 | #endif |
---|
| 258 | ENDDO |
---|
| 259 | |
---|
| 260 | #ifdef INCA |
---|
[616] | 261 | !#ifdef INCA_CH4 |
---|
| 262 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, o3_col(1), zx_tmp_2d) |
---|
[524] | 263 | CALL histwrite(nid_tra,"O3_column",itau_w,zx_tmp_2d, |
---|
| 264 | . iim*(jjm+1),ndex2d) |
---|
| 265 | |
---|
[616] | 266 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, co_col(1), zx_tmp_2d) |
---|
[524] | 267 | CALL histwrite(nid_tra,"CO_column",itau_w,zx_tmp_2d, |
---|
| 268 | . iim*(jjm+1),ndex2d) |
---|
| 269 | |
---|
[616] | 270 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, ch4_col(1), zx_tmp_2d) |
---|
[524] | 271 | CALL histwrite(nid_tra,"CH4_column",itau_w,zx_tmp_2d, |
---|
| 272 | . iim*(jjm+1),ndex2d) |
---|
| 273 | |
---|
[616] | 274 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, no2_col(1), zx_tmp_2d) |
---|
[524] | 275 | CALL histwrite(nid_tra,"NO2_column",itau_w,zx_tmp_2d, |
---|
| 276 | . iim*(jjm+1),ndex2d) |
---|
| 277 | |
---|
| 278 | CALL gr_fi_ecrit(1, klon,iim,jjm+1, o3_st_flx(1), zx_tmp_2d) |
---|
| 279 | CALL histwrite(nid_tra,"O3_ste",itau_w,zx_tmp_2d, |
---|
| 280 | . iim*(jjm+1),ndex2d) |
---|
| 281 | |
---|
| 282 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,o3_prod(1,1), |
---|
| 283 | . zx_tmp_3d) |
---|
| 284 | CALL histwrite(nid_tra,"O3_prod",itau_w,zx_tmp_3d, |
---|
| 285 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 286 | |
---|
| 287 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,o3_loss(1,1), |
---|
| 288 | . zx_tmp_3d) |
---|
| 289 | CALL histwrite(nid_tra,"O3_loss",itau_w,zx_tmp_3d, |
---|
| 290 | . iim*(jjm+1)*klev,ndex3d) |
---|
[624] | 291 | ! Ajout Anne |
---|
| 292 | #ifdef INCA_AER |
---|
| 293 | ! for sulfur cycle |
---|
[524] | 294 | |
---|
[624] | 295 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,SO2_p_dmsoh(1,1), |
---|
| 296 | . zx_tmp_3d) |
---|
| 297 | CALL histwrite(nid_tra,"SO2_p_dmsoh",itau_w,zx_tmp_3d, |
---|
| 298 | . iim*(jjm+1)*klev,ndex) |
---|
| 299 | |
---|
| 300 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,SO2_p_dmsno3(1,1), |
---|
| 301 | . zx_tmp_3d) |
---|
| 302 | CALL histwrite(nid_tra,"SO2_p_dmsno3",itau_w,zx_tmp_3d, |
---|
| 303 | . iim*(jjm+1)*klev,ndex) |
---|
| 304 | |
---|
| 305 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,SO2_p_h2soh(1,1), |
---|
| 306 | . zx_tmp_3d) |
---|
| 307 | CALL histwrite(nid_tra,"SO2_p_h2soh",itau_w,zx_tmp_3d, |
---|
| 308 | . iim*(jjm+1)*klev,ndex) |
---|
| 309 | |
---|
| 310 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,SO2_p_dmsooh(1,1), |
---|
| 311 | . zx_tmp_3d) |
---|
| 312 | CALL histwrite(nid_tra,"SO2_p_dmsooh",itau_w,zx_tmp_3d, |
---|
| 313 | . iim*(jjm+1)*klev,ndex) |
---|
| 314 | |
---|
| 315 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,DMSO_p_dmsoh(1,1), |
---|
| 316 | . zx_tmp_3d) |
---|
| 317 | CALL histwrite(nid_tra,"DMSO_p_dmsoh",itau_w,zx_tmp_3d, |
---|
| 318 | . iim*(jjm+1)*klev,ndex) |
---|
| 319 | |
---|
| 320 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,ASMSAM_p_dmsooh(1,1), |
---|
| 321 | . zx_tmp_3d) |
---|
| 322 | CALL histwrite(nid_tra,"ASMSAM_p_dmsooh",itau_w,zx_tmp_3d, |
---|
| 323 | . iim*(jjm+1)*klev,ndex) |
---|
| 324 | |
---|
| 325 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,ASSO4M_p_so2oh(1,1), |
---|
| 326 | . zx_tmp_3d) |
---|
| 327 | CALL histwrite(nid_tra,"ASSO4M_p_so2oh",itau_w,zx_tmp_3d, |
---|
| 328 | . iim*(jjm+1)*klev,ndex) |
---|
| 329 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,ASSO4M_p_so2h2o2(1,1), |
---|
| 330 | . zx_tmp_3d) |
---|
| 331 | CALL histwrite(nid_tra,"ASSO4M_p_so2h2o2",itau_w,zx_tmp_3d, |
---|
| 332 | . iim*(jjm+1)*klev,ndex) |
---|
| 333 | |
---|
| 334 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,ASSO4M_p_so2o3(1,1), |
---|
| 335 | . zx_tmp_3d) |
---|
| 336 | CALL histwrite(nid_tra,"ASSO4M_p_so2o3",itau_w,zx_tmp_3d, |
---|
| 337 | . iim*(jjm+1)*klev,ndex) |
---|
| 338 | |
---|
| 339 | c closing the sulfur budget |
---|
| 340 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1, wet3d_so2(1,1), zx_tmp_3d) |
---|
| 341 | CALL histwrite(nid_tra,"Wet3D_SO2",itau_w,zx_tmp_3d, |
---|
| 342 | . iim*(jjm+1)*klev,ndex) |
---|
| 343 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1, wet3d_dms(1,1), zx_tmp_3d) |
---|
| 344 | CALL histwrite(nid_tra,"Wet3D_DMS",itau_w,zx_tmp_3d, |
---|
| 345 | . iim*(jjm+1)*klev,ndex) |
---|
| 346 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1, wet3d_hno3(1,1), zx_tmp_3d) |
---|
| 347 | CALL histwrite(nid_tra,"Wet3D_HNO3",itau_w,zx_tmp_3d, |
---|
| 348 | . iim*(jjm+1)*klev,ndex) |
---|
| 349 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1, wet3d_h2o2(1,1), zx_tmp_3d) |
---|
| 350 | CALL histwrite(nid_tra,"Wet3D_H2O2",itau_w,zx_tmp_3d, |
---|
| 351 | . iim*(jjm+1)*klev,ndex) |
---|
| 352 | |
---|
| 353 | |
---|
| 354 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,PH_HIST(1,1), |
---|
| 355 | . zx_tmp_3d) |
---|
| 356 | CALL histwrite(nid_tra,"PH_HIST",itau_w,zx_tmp_3d, |
---|
| 357 | . iim*(jjm+1)*klev,ndex) |
---|
| 358 | #endif |
---|
| 359 | |
---|
| 360 | #ifdef INCA_NMHC |
---|
| 361 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,CO2_basprod(1,1), |
---|
| 362 | . zx_tmp_3d) |
---|
| 363 | CALL histwrite(nid_tra,"CO2_basprod",itau_w,zx_tmp_3d, |
---|
| 364 | . iim*(jjm+1)*klev,ndex) |
---|
| 365 | |
---|
| 366 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,CO2_nmhcprod(1,1), |
---|
| 367 | . zx_tmp_3d) |
---|
| 368 | CALL histwrite(nid_tra,"CO2_nmhcprod",itau_w,zx_tmp_3d, |
---|
| 369 | . iim*(jjm+1)*klev,ndex) |
---|
| 370 | |
---|
| 371 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,CO2_radicalprod(1,1), |
---|
| 372 | . zx_tmp_3d) |
---|
| 373 | CALL histwrite(nid_tra,"CO2_radicalprod",itau_w,zx_tmp_3d, |
---|
| 374 | . iim*(jjm+1)*klev,ndex) |
---|
| 375 | |
---|
| 376 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,hno3_prod(1,1), |
---|
| 377 | . zx_tmp_3d) |
---|
| 378 | CALL histwrite(nid_tra,"HNO3_prod",itau_w,zx_tmp_3d, |
---|
| 379 | . iim*(jjm+1)*klev,ndex) |
---|
| 380 | |
---|
| 381 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,hno3_loss(1,1), |
---|
| 382 | . zx_tmp_3d) |
---|
| 383 | CALL histwrite(nid_tra,"HNO3_loss",itau_w,zx_tmp_3d, |
---|
| 384 | . iim*(jjm+1)*klev,ndex) |
---|
| 385 | |
---|
| 386 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,co_prod(1,1), |
---|
| 387 | . zx_tmp_3d) |
---|
| 388 | CALL histwrite(nid_tra,"CO_prod",itau_w,zx_tmp_3d, |
---|
| 389 | . iim*(jjm+1)*klev,ndex) |
---|
| 390 | |
---|
| 391 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,co_loss(1,1), |
---|
| 392 | . zx_tmp_3d) |
---|
| 393 | CALL histwrite(nid_tra,"CO_loss",itau_w,zx_tmp_3d, |
---|
| 394 | . iim*(jjm+1)*klev,ndex) |
---|
| 395 | |
---|
| 396 | #endif |
---|
| 397 | |
---|
| 398 | ! Fin ajout Anne |
---|
| 399 | |
---|
[524] | 400 | ! ... Special section for daytime averaging |
---|
| 401 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,day_cnt(1,1), |
---|
| 402 | ! . zx_tmp_3d) |
---|
| 403 | ! CALL histwrite(nid_tra,"day_cnt",itau_w,zx_tmp_3d, |
---|
| 404 | ! . iim*(jjm+1)*klev,ndex3d) |
---|
| 405 | ! CALL gr_fi_ecrit(klev,klon,iim,jjm+1,no_daytime(1,1), |
---|
| 406 | ! . zx_tmp_3d) |
---|
| 407 | ! CALL histwrite(nid_tra,"NO_day",itau_w,zx_tmp_3d, |
---|
| 408 | ! . iim*(jjm+1)*klev,ndex3d) |
---|
| 409 | |
---|
[616] | 410 | !#endif |
---|
[524] | 411 | #else |
---|
| 412 | |
---|
| 413 | C abder |
---|
| 414 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,yu1,zx_tmp_2d) |
---|
| 415 | CALL histwrite(nid_tra,"pyu1",itau_w,zx_tmp_2d, |
---|
| 416 | s iim*(jjm+1),ndex2d) |
---|
| 417 | |
---|
| 418 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,yv1,zx_tmp_2d) |
---|
| 419 | CALL histwrite(nid_tra,"pyv1",itau_w,zx_tmp_2d, |
---|
| 420 | s iim*(jjm+1),ndex2d) |
---|
| 421 | |
---|
| 422 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,pftsol1,zx_tmp_2d) |
---|
| 423 | CALL histwrite(nid_tra,"ftsol1",itau_w,zx_tmp_2d, |
---|
| 424 | s iim*(jjm+1),ndex2d) |
---|
| 425 | |
---|
| 426 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,pftsol2,zx_tmp_2d) |
---|
| 427 | CALL histwrite(nid_tra,"ftsol2",itau_w,zx_tmp_2d, |
---|
| 428 | s iim*(jjm+1),ndex2d) |
---|
| 429 | |
---|
| 430 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,pftsol3,zx_tmp_2d) |
---|
| 431 | CALL histwrite(nid_tra,"ftsol3",itau_w,zx_tmp_2d, |
---|
| 432 | s iim*(jjm+1),ndex2d) |
---|
| 433 | |
---|
| 434 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,pftsol4,zx_tmp_2d) |
---|
| 435 | CALL histwrite(nid_tra,"ftsol4",itau_w,zx_tmp_2d, |
---|
| 436 | s iim*(jjm+1),ndex2d) |
---|
| 437 | |
---|
| 438 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,ppsrf1,zx_tmp_2d) |
---|
| 439 | CALL histwrite(nid_tra,"psrf1",itau_w,zx_tmp_2d, |
---|
| 440 | s iim*(jjm+1),ndex2d) |
---|
| 441 | |
---|
| 442 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,ppsrf2,zx_tmp_2d) |
---|
| 443 | CALL histwrite(nid_tra,"psrf2",itau_w,zx_tmp_2d, |
---|
| 444 | s iim*(jjm+1),ndex2d) |
---|
| 445 | |
---|
| 446 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,ppsrf3,zx_tmp_2d) |
---|
| 447 | CALL histwrite(nid_tra,"psrf3",itau_w,zx_tmp_2d, |
---|
| 448 | s iim*(jjm+1),ndex2d) |
---|
| 449 | |
---|
| 450 | CALL gr_fi_ecrit(1,klon,iim,jjm+1,ppsrf4,zx_tmp_2d) |
---|
| 451 | CALL histwrite(nid_tra,"psrf4",itau_w,zx_tmp_2d, |
---|
| 452 | s iim*(jjm+1),ndex2d) |
---|
| 453 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pplay,zx_tmp_3d) |
---|
| 454 | CALL histwrite(nid_tra,"pplay",itau_w,zx_tmp_3d, |
---|
| 455 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 456 | |
---|
| 457 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,t_seri,zx_tmp_3d) |
---|
| 458 | CALL histwrite(nid_tra,"t",itau_w,zx_tmp_3d, |
---|
| 459 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 460 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pmfu,zx_tmp_3d) |
---|
| 461 | CALL histwrite(nid_tra,"mfu",itau_w,zx_tmp_3d, |
---|
| 462 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 463 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pmfd,zx_tmp_3d) |
---|
| 464 | CALL histwrite(nid_tra,"mfd",itau_w,zx_tmp_3d, |
---|
| 465 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 466 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pen_u,zx_tmp_3d) |
---|
| 467 | CALL histwrite(nid_tra,"en_u",itau_w,zx_tmp_3d, |
---|
| 468 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 469 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pen_d,zx_tmp_3d) |
---|
| 470 | CALL histwrite(nid_tra,"en_d",itau_w,zx_tmp_3d, |
---|
| 471 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 472 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pde_d,zx_tmp_3d) |
---|
| 473 | CALL histwrite(nid_tra,"de_d",itau_w,zx_tmp_3d, |
---|
| 474 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 475 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,pde_u,zx_tmp_3d) |
---|
| 476 | CALL histwrite(nid_tra,"de_u",itau_w,zx_tmp_3d, |
---|
| 477 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 478 | CALL gr_fi_ecrit(klev,klon,iim,jjm+1,coefh,zx_tmp_3d) |
---|
| 479 | CALL histwrite(nid_tra,"coefh",itau_w,zx_tmp_3d, |
---|
| 480 | . iim*(jjm+1)*klev,ndex3d) |
---|
| 481 | |
---|
| 482 | |
---|
| 483 | c abder |
---|
| 484 | #endif |
---|
| 485 | |
---|
| 486 | if (ok_sync) then |
---|
| 487 | call histsync(nid_tra) |
---|
| 488 | #ifdef INCA_AER |
---|
| 489 | call histsync(nid_tra2) |
---|
| 490 | call histsync(nid_tra3) |
---|
| 491 | #endif |
---|
| 492 | endif |
---|
| 493 | |
---|
| 494 | |
---|