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