[524] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
| 4 | IF (ok_instan) THEN |
---|
| 5 | c |
---|
| 6 | ndex2d = 0 |
---|
| 7 | ndex3d = 0 |
---|
| 8 | c |
---|
| 9 | c Champs 2D: |
---|
| 10 | c |
---|
[684] | 11 | itau_w = itau_phy + itap |
---|
[524] | 12 | |
---|
[766] | 13 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,pphis,zx_tmp_2d) |
---|
| 14 | CALL histwrite_phy(nid_ins,"phis",itau_w,pphis) |
---|
[524] | 15 | c |
---|
[766] | 16 | cym CALL gr_fi_ecrit(1,klon,iim,jjmp1,airephy,zx_tmp_2d) |
---|
| 17 | CALL histwrite_phy(nid_ins,"aire",itau_w,airephy) |
---|
[524] | 18 | |
---|
| 19 | DO i = 1, klon |
---|
| 20 | zx_tmp_fi2d(i) = paprs(i,1) |
---|
| 21 | ENDDO |
---|
[766] | 22 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 23 | CALL histwrite_phy(nid_ins,"psol",itau_w,zx_tmp_fi2d) |
---|
[524] | 24 | c |
---|
| 25 | DO i = 1, klon |
---|
| 26 | zx_tmp_fi2d(i) = rain_fall(i) + snow_fall(i) |
---|
| 27 | ENDDO |
---|
[766] | 28 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 29 | CALL histwrite_phy(nid_ins,"precip",itau_w,zx_tmp_fi2d) |
---|
[524] | 30 | c |
---|
| 31 | DO i = 1, klon |
---|
| 32 | zx_tmp_fi2d(i) = rain_lsc(i) + snow_lsc(i) |
---|
| 33 | ENDDO |
---|
[766] | 34 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 35 | CALL histwrite_phy(nid_ins,"plul",itau_w,zx_tmp_fi2d) |
---|
[524] | 36 | c |
---|
| 37 | DO i = 1, klon |
---|
| 38 | zx_tmp_fi2d(i) = rain_con(i) + snow_con(i) |
---|
| 39 | ENDDO |
---|
[766] | 40 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 41 | CALL histwrite_phy(nid_ins,"pluc",itau_w,zx_tmp_fi2d) |
---|
[524] | 42 | |
---|
[766] | 43 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxtsol,zx_tmp_2d) |
---|
| 44 | CALL histwrite_phy(nid_ins,"tsol",itau_w,zxtsol) |
---|
[524] | 45 | cccIM |
---|
[766] | 46 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zt2m, zx_tmp_2d) |
---|
| 47 | CALL histwrite_phy(nid_ins,"t2m",itau_w,zt2m) |
---|
[524] | 48 | c |
---|
[766] | 49 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zq2m, zx_tmp_2d) |
---|
| 50 | CALL histwrite_phy(nid_ins,"q2m",itau_w,zq2m) |
---|
[524] | 51 | c |
---|
[766] | 52 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zu10m, zx_tmp_2d) |
---|
| 53 | CALL histwrite_phy(nid_ins,"u10m",itau_w,zu10m) |
---|
[524] | 54 | C |
---|
[766] | 55 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zv10m, zx_tmp_2d) |
---|
| 56 | CALL histwrite_phy(nid_ins,"v10m",itau_w,zv10m) |
---|
[524] | 57 | c |
---|
[766] | 58 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, snow_fall,zx_tmp_2d) |
---|
| 59 | CALL histwrite_phy(nid_ins,"snow",itau_w,snow_fall) |
---|
[524] | 60 | |
---|
[766] | 61 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cdragm,zx_tmp_2d) |
---|
| 62 | CALL histwrite_phy(nid_ins,"cdrm",itau_w,cdragm) |
---|
[524] | 63 | c |
---|
[766] | 64 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, cdragh,zx_tmp_2d) |
---|
| 65 | CALL histwrite_phy(nid_ins,"cdrh",itau_w,cdragh) |
---|
[524] | 66 | c |
---|
[766] | 67 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, toplw,zx_tmp_2d) |
---|
| 68 | CALL histwrite_phy(nid_ins,"topl",itau_w,toplw) |
---|
[524] | 69 | c |
---|
[766] | 70 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, evap,zx_tmp_2d) |
---|
| 71 | CALL histwrite_phy(nid_ins,"evap",itau_w,evap) |
---|
[524] | 72 | c |
---|
[766] | 73 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, solsw,zx_tmp_2d) |
---|
| 74 | CALL histwrite_phy(nid_ins,"sols",itau_w,solsw) |
---|
[524] | 75 | c |
---|
[766] | 76 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollw,zx_tmp_2d) |
---|
| 77 | CALL histwrite_phy(nid_ins,"soll",itau_w,sollw) |
---|
[524] | 78 | c |
---|
[766] | 79 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollwdown,zx_tmp_2d) |
---|
| 80 | CALL histwrite_phy(nid_ins,"solldown",itau_w,sollwdown) |
---|
[524] | 81 | c |
---|
[766] | 82 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, bils,zx_tmp_2d) |
---|
| 83 | CALL histwrite_phy(nid_ins,"bils",itau_w,bils) |
---|
[524] | 84 | c |
---|
| 85 | zx_tmp_fi2d(1:klon)=-1*sens(1:klon) |
---|
| 86 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, sens,zx_tmp_2d) |
---|
[766] | 87 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 88 | CALL histwrite_phy(nid_ins,"sens",itau_w,zx_tmp_fi2d) |
---|
[524] | 89 | c |
---|
[766] | 90 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, fder,zx_tmp_2d) |
---|
| 91 | CALL histwrite_phy(nid_ins,"fder",itau_w,fder) |
---|
[524] | 92 | c |
---|
[766] | 93 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, d_ts(1,is_oce),zx_tmp_2d) |
---|
| 94 | CALL histwrite_phy(nid_ins,"dtsvdfo",itau_w,d_ts(:,is_oce)) |
---|
[524] | 95 | c |
---|
[766] | 96 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, d_ts(1,is_ter),zx_tmp_2d) |
---|
| 97 | CALL histwrite_phy(nid_ins,"dtsvdft",itau_w,d_ts(:,is_ter)) |
---|
[524] | 98 | c |
---|
[766] | 99 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, d_ts(1,is_lic),zx_tmp_2d) |
---|
| 100 | CALL histwrite_phy(nid_ins,"dtsvdfg",itau_w, d_ts(:,is_lic)) |
---|
[524] | 101 | c |
---|
[766] | 102 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, d_ts(1,is_sic),zx_tmp_2d) |
---|
| 103 | CALL histwrite_phy(nid_ins,"dtsvdfi",itau_w,d_ts(:,is_sic)) |
---|
[524] | 104 | |
---|
| 105 | DO nsrf = 1, nbsrf |
---|
| 106 | CXXX |
---|
[644] | 107 | zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf)*100. |
---|
[766] | 108 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 109 | CALL histwrite_phy(nid_ins,"pourc_"//clnsurf(nsrf),itau_w, |
---|
| 110 | $ zx_tmp_fi2d) |
---|
[524] | 111 | C |
---|
[644] | 112 | zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf) |
---|
[766] | 113 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 114 | CALL histwrite_phy(nid_ins,"fract_"//clnsurf(nsrf),itau_w, |
---|
| 115 | $ zx_tmp_fi2d) |
---|
[644] | 116 | C |
---|
[524] | 117 | zx_tmp_fi2d(1 : klon) = fluxt( 1 : klon, 1, nsrf) |
---|
[766] | 118 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 119 | CALL histwrite_phy(nid_ins,"sens_"//clnsurf(nsrf),itau_w, |
---|
| 120 | $ zx_tmp_fi2d) |
---|
[524] | 121 | C |
---|
| 122 | zx_tmp_fi2d(1 : klon) = fluxlat( 1 : klon, nsrf) |
---|
[766] | 123 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 124 | CALL histwrite_phy(nid_ins,"lat_"//clnsurf(nsrf),itau_w, |
---|
| 125 | $ zx_tmp_fi2d) |
---|
[524] | 126 | C |
---|
| 127 | zx_tmp_fi2d(1 : klon) = ftsol( 1 : klon, nsrf) |
---|
[766] | 128 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 129 | CALL histwrite_phy(nid_ins,"tsol_"//clnsurf(nsrf),itau_w, |
---|
| 130 | $ zx_tmp_fi2d) |
---|
[524] | 131 | C |
---|
| 132 | zx_tmp_fi2d(1 : klon) = fluxu( 1 : klon, 1, nsrf) |
---|
[766] | 133 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 134 | CALL histwrite_phy(nid_ins,"taux_"//clnsurf(nsrf),itau_w, |
---|
| 135 | $ zx_tmp_fi2d) |
---|
[524] | 136 | C |
---|
| 137 | zx_tmp_fi2d(1 : klon) = fluxv( 1 : klon, 1, nsrf) |
---|
[766] | 138 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 139 | CALL histwrite_phy(nid_ins,"tauy_"//clnsurf(nsrf),itau_w, |
---|
| 140 | $ zx_tmp_fi2d) |
---|
[524] | 141 | C |
---|
| 142 | zx_tmp_fi2d(1 : klon) = frugs( 1 : klon, nsrf) |
---|
[766] | 143 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 144 | CALL histwrite_phy(nid_ins,"rugs_"//clnsurf(nsrf),itau_w, |
---|
| 145 | $ zx_tmp_fi2d) |
---|
[524] | 146 | C |
---|
[888] | 147 | zx_tmp_fi2d(1 : klon) = falb1( 1 : klon, nsrf) |
---|
[766] | 148 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 149 | CALL histwrite_phy(nid_ins,"albe_"//clnsurf(nsrf),itau_w, |
---|
| 150 | $ zx_tmp_fi2d) |
---|
[524] | 151 | C |
---|
| 152 | END DO |
---|
[888] | 153 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, albsol1,zx_tmp_2d) |
---|
| 154 | CALL histwrite_phy(nid_ins,"albs",itau_w,albsol1) |
---|
[766] | 155 | |
---|
[888] | 156 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, albsol2,zx_tmp_2d) |
---|
| 157 | CALL histwrite_phy(nid_ins,"albslw",itau_w,albsol2) |
---|
[766] | 158 | |
---|
[524] | 159 | c |
---|
[644] | 160 | cIM: 140404 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxsnow,zx_tmp_2d) |
---|
| 161 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, zsnow_mass,zx_tmp_2d) |
---|
[766] | 162 | c CALL histwrite_phy(nid_ins,"snow_mass",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
[644] | 163 | c . ndex2d) |
---|
[524] | 164 | c |
---|
[766] | 165 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxrugs,zx_tmp_2d) |
---|
| 166 | CALL histwrite_phy(nid_ins,"rugs",itau_w,zxrugs) |
---|
[524] | 167 | c |
---|
[644] | 168 | cIM cf. AM 081204 BEG |
---|
| 169 | c |
---|
| 170 | cHBTM2 |
---|
| 171 | c |
---|
| 172 | c |
---|
[766] | 173 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_pblh,zx_tmp_2d) |
---|
| 174 | CALL histwrite_phy(nid_ins,"s_pblh",itau_w,s_pblh) |
---|
[644] | 175 | c |
---|
[766] | 176 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_pblt,zx_tmp_2d) |
---|
| 177 | CALL histwrite_phy(nid_ins,"s_pblt",itau_w,s_pblt) |
---|
[644] | 178 | c |
---|
[766] | 179 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_lcl,zx_tmp_2d) |
---|
| 180 | CALL histwrite_phy(nid_ins,"s_lcl",itau_w,s_lcl) |
---|
[644] | 181 | c |
---|
[766] | 182 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_capCL,zx_tmp_2d) |
---|
| 183 | CALL histwrite_phy(nid_ins,"s_capCL",itau_w,s_capCL) |
---|
[644] | 184 | c |
---|
[766] | 185 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_oliqCL,zx_tmp_2d) |
---|
| 186 | CALL histwrite_phy(nid_ins,"s_oliqCL",itau_w,s_oliqCL) |
---|
[644] | 187 | c |
---|
[766] | 188 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_cteiCL,zx_tmp_2d) |
---|
| 189 | CALL histwrite_phy(nid_ins,"s_cteiCL",itau_w,s_cteiCL) |
---|
[644] | 190 | c |
---|
[766] | 191 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_therm,zx_tmp_2d) |
---|
| 192 | CALL histwrite_phy(nid_ins,"s_therm",itau_w,s_therm) |
---|
[644] | 193 | c |
---|
[766] | 194 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_trmb1,zx_tmp_2d) |
---|
| 195 | CALL histwrite_phy(nid_ins,"s_trmb1",itau_w,s_trmb1) |
---|
[644] | 196 | c |
---|
[766] | 197 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_trmb2,zx_tmp_2d) |
---|
| 198 | CALL histwrite_phy(nid_ins,"s_trmb2",itau_w,s_trmb2) |
---|
[644] | 199 | c |
---|
[766] | 200 | cym CALL gr_fi_ecrit(1, klon,iim,jjmp1, s_trmb3,zx_tmp_2d) |
---|
| 201 | CALL histwrite_phy(nid_ins,"s_trmb3",itau_w,s_trmb3) |
---|
[644] | 202 | c |
---|
| 203 | cIM cf. AM 081204 END |
---|
| 204 | c |
---|
[524] | 205 | c Champs 3D: |
---|
| 206 | c |
---|
[766] | 207 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, t_seri, zx_tmp_3d) |
---|
| 208 | CALL histwrite_phy(nid_ins,"temp",itau_w,t_seri) |
---|
[524] | 209 | c |
---|
[766] | 210 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, u_seri, zx_tmp_3d) |
---|
| 211 | CALL histwrite_phy(nid_ins,"vitu",itau_w,u_seri) |
---|
[524] | 212 | c |
---|
[766] | 213 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, v_seri, zx_tmp_3d) |
---|
| 214 | CALL histwrite_phy(nid_ins,"vitv",itau_w,v_seri) |
---|
[524] | 215 | c |
---|
[766] | 216 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zphi, zx_tmp_3d) |
---|
| 217 | CALL histwrite_phy(nid_ins,"geop",itau_w,zphi) |
---|
[524] | 218 | c |
---|
[766] | 219 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, pplay, zx_tmp_3d) |
---|
| 220 | CALL histwrite_phy(nid_ins,"pres",itau_w,pplay) |
---|
[524] | 221 | c |
---|
[766] | 222 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_t_vdf, zx_tmp_3d) |
---|
| 223 | CALL histwrite_phy(nid_ins,"dtvdf",itau_w,d_t_vdf) |
---|
[524] | 224 | c |
---|
[766] | 225 | cym CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_q_vdf, zx_tmp_3d) |
---|
| 226 | CALL histwrite_phy(nid_ins,"dqvdf",itau_w,d_q_vdf) |
---|
[524] | 227 | |
---|
| 228 | c |
---|
| 229 | if (ok_sync) then |
---|
[766] | 230 | c$OMP MASTER |
---|
[524] | 231 | call histsync(nid_ins) |
---|
[766] | 232 | c$OMP END MASTER |
---|
[524] | 233 | endif |
---|
| 234 | ENDIF |
---|