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