[416] | 1 | IF (ok_mensuel) THEN |
---|
| 2 | c |
---|
| 3 | ndex2d = 0 |
---|
| 4 | ndex3d = 0 |
---|
[506] | 5 | |
---|
[416] | 6 | zsto = dtime |
---|
| 7 | zout = dtime * ecrit_mth |
---|
| 8 | itau_w = itau_phy + itap |
---|
| 9 | |
---|
| 10 | i = NINT(zout/zsto) |
---|
[506] | 11 | c |
---|
| 12 | IF(lev_histmth.GE.1) THEN |
---|
| 13 | c |
---|
| 14 | c Champs 2D: |
---|
| 15 | c |
---|
[416] | 16 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,pphis,zx_tmp_2d) |
---|
| 17 | CALL histwrite(nid_mth,"phis",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 18 | C |
---|
| 19 | i = NINT(zout/zsto) |
---|
| 20 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,paire,zx_tmp_2d) |
---|
| 21 | CALL histwrite(nid_mth,"aire",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
[506] | 22 | c |
---|
| 23 | zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, is_ter) |
---|
| 24 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 25 | CALL histwrite(nid_mth,"pourc_"//clnsurf(is_ter),itau_w, |
---|
| 26 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 27 | c |
---|
[455] | 28 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, slp,zx_tmp_2d) |
---|
| 29 | CALL histwrite(nid_mth,"slp",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 30 | |
---|
[416] | 31 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxtsol,zx_tmp_2d) |
---|
| 32 | CALL histwrite(nid_mth,"tsol",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 33 | c |
---|
| 34 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zt2m,zx_tmp_2d) |
---|
| 35 | CALL histwrite(nid_mth,"t2m",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 36 | c |
---|
[506] | 37 | c ENSEMBLES BEG |
---|
| 38 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zt2m,zx_tmp_2d) |
---|
| 39 | CALL histwrite(nid_mth,"t2m_min",itau_w,zx_tmp_2d, |
---|
| 40 | . iim*jjmp1,ndex2d) |
---|
| 41 | c |
---|
| 42 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zt2m,zx_tmp_2d) |
---|
| 43 | CALL histwrite(nid_mth,"t2m_max",itau_w,zx_tmp_2d, |
---|
| 44 | . iim*jjmp1,ndex2d) |
---|
| 45 | c |
---|
| 46 | c CALL gr_fi_ecrit(1,klon,iim,jjmp1,ftsoil(:,1,is_ter),zx_tmp_2d) |
---|
| 47 | c CALL gr_fi_ecrit(1,klon,iim,jjmp1,ftsol(:,is_ter),zx_tmp_2d) |
---|
| 48 | c CALL gr_fi_ecrit(1,klon,iim,jjmp1,ztsol,zx_tmp_2d) |
---|
| 49 | c CALL histwrite(nid_mth,"tsoil",itau_w,zx_tmp_2d, |
---|
| 50 | c . iim*jjmp1,ndex2d) |
---|
| 51 | c |
---|
| 52 | DO i=1, klon |
---|
| 53 | zx_tmp_fi2d(i)=SQRT(zu10m(i)*zu10m(i)+zv10m(i)*zv10m(i)) |
---|
| 54 | ENDDO |
---|
| 55 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 56 | CALL histwrite(nid_mth,"wind10m",itau_w,zx_tmp_2d, |
---|
| 57 | $ iim*jjmp1,ndex2d) |
---|
| 58 | c |
---|
| 59 | DO i = 1, klon |
---|
| 60 | zx_tmp_fi2d(i) = pctsrf(i,is_sic) |
---|
| 61 | ENDDO |
---|
| 62 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 63 | CALL histwrite(nid_mth,"sicf",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 64 | c |
---|
| 65 | c CALL gr_fi_ecrit(klev,klon,iim,jjmp1, t_seri, zx_tmp_3d) |
---|
| 66 | c CALL histwrite(nid_mth,"temp",itau_w,zx_tmp_3d, |
---|
| 67 | c . iim*jjmp1*klev,ndex3d) |
---|
| 68 | c |
---|
| 69 | c ENSEMBLES END |
---|
| 70 | c |
---|
[416] | 71 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zq2m,zx_tmp_2d) |
---|
| 72 | CALL histwrite(nid_mth,"q2m",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 73 | c |
---|
| 74 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zu10m,zx_tmp_2d) |
---|
| 75 | CALL histwrite(nid_mth,"u10m",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 76 | C |
---|
| 77 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zv10m,zx_tmp_2d) |
---|
| 78 | CALL histwrite(nid_mth,"v10m",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 79 | C |
---|
| 80 | DO i = 1, klon |
---|
| 81 | zx_tmp_fi2d(i) = paprs(i,1) |
---|
| 82 | ENDDO |
---|
| 83 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 84 | CALL histwrite(nid_mth,"psol",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 85 | c |
---|
[446] | 86 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxqsurf,zx_tmp_2d) |
---|
| 87 | CALL histwrite(nid_mth,"qsurf",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
[416] | 88 | c |
---|
[446] | 89 | if (.not. ok_veget) then |
---|
| 90 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, qsol,zx_tmp_2d) |
---|
| 91 | CALL histwrite(nid_mth,"qsol",itau_w,zx_tmp_2d,iim*jjmp1 |
---|
| 92 | $ ,ndex2d) |
---|
| 93 | endif |
---|
| 94 | c |
---|
[416] | 95 | DO i = 1, klon |
---|
| 96 | zx_tmp_fi2d(i) = rain_fall(i) + snow_fall(i) |
---|
| 97 | ENDDO |
---|
| 98 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 99 | CALL histwrite(nid_mth,"precip",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 100 | c |
---|
[506] | 101 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, nday_rain,zx_tmp_2d) |
---|
| 102 | CALL histwrite(nid_mth,"ndayrain",itau_w,zx_tmp_2d, |
---|
| 103 | $ iim*jjmp1,ndex2d) |
---|
| 104 | c |
---|
[416] | 105 | DO i = 1, klon |
---|
| 106 | zx_tmp_fi2d(i) = rain_lsc(i) + snow_lsc(i) |
---|
| 107 | ENDDO |
---|
| 108 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 109 | CALL histwrite(nid_mth,"plul",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 110 | c |
---|
| 111 | DO i = 1, klon |
---|
| 112 | zx_tmp_fi2d(i) = rain_con(i) + snow_con(i) |
---|
| 113 | ENDDO |
---|
| 114 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 115 | CALL histwrite(nid_mth,"pluc",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 116 | c |
---|
| 117 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, snow_fall,zx_tmp_2d) |
---|
| 118 | CALL histwrite(nid_mth,"snow",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 119 | c |
---|
| 120 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxsnow,zx_tmp_2d) |
---|
| 121 | CALL histwrite(nid_mth,"snow_mass",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
| 122 | . ndex2d) |
---|
| 123 | c |
---|
[486] | 124 | cIM: 071003 |
---|
[506] | 125 | c zx_tmp_fi2d(1:klon)=evap(1:klon)*86400. |
---|
| 126 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 127 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, evap,zx_tmp_2d) |
---|
[416] | 128 | CALL histwrite(nid_mth,"evap",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 129 | c |
---|
| 130 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, topsw,zx_tmp_2d) |
---|
| 131 | CALL histwrite(nid_mth,"tops",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 132 | c |
---|
[506] | 133 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, topsw0,zx_tmp_2d) |
---|
| 134 | CALL histwrite(nid_mth,"tops0",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 135 | c |
---|
[416] | 136 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, toplw,zx_tmp_2d) |
---|
| 137 | CALL histwrite(nid_mth,"topl",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 138 | c |
---|
[506] | 139 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, toplw0,zx_tmp_2d) |
---|
| 140 | CALL histwrite(nid_mth,"topl0",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 141 | c |
---|
| 142 | c zx_tmp_fi2d(1 : klon) = ZFSUP( 1 : klon, klevp1) |
---|
| 143 | cIM 080304 zx_tmp_fi2d(1 : klon) = swup ( 1 : klon, 2 ) |
---|
| 144 | zx_tmp_fi2d(1 : klon) = swup ( 1 : klon, klevp1 ) |
---|
| 145 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 146 | CALL histwrite(nid_mth, "SWupTOA",itau_w,zx_tmp_2d, |
---|
| 147 | . iim*jjmp1,ndex2d) |
---|
| 148 | c |
---|
| 149 | c |
---|
| 150 | c zx_tmp_fi2d(1 : klon) = ZFSUP0( 1 : klon, klevp1) |
---|
| 151 | cIM 080304 zx_tmp_fi2d(1 : klon) = swup0 ( 1 : klon, 2 ) |
---|
| 152 | zx_tmp_fi2d(1 : klon) = swup0 ( 1 : klon, klevp1 ) |
---|
| 153 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 154 | CALL histwrite(nid_mth, "SWupTOAclr",itau_w,zx_tmp_2d, |
---|
| 155 | . iim*jjmp1,ndex2d) |
---|
| 156 | c |
---|
| 157 | c zx_tmp_fi2d(1 : klon) = ZFSDN( 1 : klon, klevp1) |
---|
| 158 | cIM 080304 zx_tmp_fi2d(1 : klon) = swdn ( 1 : klon, 2 ) |
---|
| 159 | zx_tmp_fi2d(1 : klon) = swdn ( 1 : klon, klevp1 ) |
---|
| 160 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 161 | CALL histwrite(nid_mth, "SWdnTOA",itau_w,zx_tmp_2d, |
---|
| 162 | . iim*jjmp1,ndex2d) |
---|
| 163 | c |
---|
| 164 | c zx_tmp_fi2d(1 : klon) = ZFSDN0( 1 : klon, klevp1) |
---|
| 165 | cIM 080304 zx_tmp_fi2d(1 : klon) = swdn0 ( 1 : klon, 2 ) |
---|
| 166 | zx_tmp_fi2d(1 : klon) = swdn0 ( 1 : klon, klevp1 ) |
---|
| 167 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 168 | CALL histwrite(nid_mth, "SWdnTOAclr",itau_w,zx_tmp_2d, |
---|
| 169 | . iim*jjmp1,ndex2d) |
---|
| 170 | c |
---|
| 171 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, SWup200,zx_tmp_2d) |
---|
| 172 | CALL histwrite(nid_mth,"SWup200",itau_w,zx_tmp_2d, |
---|
| 173 | $ iim*jjmp1,ndex2d) |
---|
| 174 | c |
---|
| 175 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, SWup200clr,zx_tmp_2d) |
---|
| 176 | CALL histwrite(nid_mth,"SWup200clr",itau_w,zx_tmp_2d, |
---|
| 177 | $ iim*jjmp1,ndex2d) |
---|
| 178 | c |
---|
| 179 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, SWdn200,zx_tmp_2d) |
---|
| 180 | CALL histwrite(nid_mth,"SWdn200",itau_w,zx_tmp_2d, |
---|
| 181 | $ iim*jjmp1,ndex2d) |
---|
| 182 | c |
---|
| 183 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, SWdn200clr,zx_tmp_2d) |
---|
| 184 | CALL histwrite(nid_mth,"SWdn200clr",itau_w,zx_tmp_2d, |
---|
| 185 | $ iim*jjmp1,ndex2d) |
---|
| 186 | c |
---|
| 187 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, LWup200,zx_tmp_2d) |
---|
| 188 | CALL histwrite(nid_mth,"LWup200",itau_w,zx_tmp_2d, |
---|
| 189 | $ iim*jjmp1,ndex2d) |
---|
| 190 | c |
---|
| 191 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, LWup200clr,zx_tmp_2d) |
---|
| 192 | CALL histwrite(nid_mth,"LWup200clr",itau_w,zx_tmp_2d, |
---|
| 193 | $ iim*jjmp1,ndex2d) |
---|
| 194 | c |
---|
| 195 | zx_tmp_fi2d(1:klon)=-1*LWdn200(1:klon) |
---|
| 196 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 197 | CALL histwrite(nid_mth,"LWdn200",itau_w,zx_tmp_2d, |
---|
| 198 | $ iim*jjmp1,ndex2d) |
---|
| 199 | c |
---|
| 200 | zx_tmp_fi2d(1:klon)=-1*LWdn200clr(1:klon) |
---|
| 201 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 202 | CALL histwrite(nid_mth,"LWdn200clr",itau_w,zx_tmp_2d, |
---|
| 203 | $ iim*jjmp1,ndex2d) |
---|
| 204 | c |
---|
| 205 | c200 END |
---|
[416] | 206 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, solsw,zx_tmp_2d) |
---|
| 207 | CALL histwrite(nid_mth,"sols",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 208 | c |
---|
[506] | 209 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, solsw0,zx_tmp_2d) |
---|
| 210 | CALL histwrite(nid_mth,"sols0",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 211 | c |
---|
[416] | 212 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollw,zx_tmp_2d) |
---|
| 213 | CALL histwrite(nid_mth,"soll",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 214 | c |
---|
[506] | 215 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollw0,zx_tmp_2d) |
---|
| 216 | CALL histwrite(nid_mth,"soll0",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 217 | c |
---|
| 218 | c zx_tmp_fi2d(1 : klon) = ZFSUP( 1 : klon, 1) |
---|
| 219 | zx_tmp_fi2d(1 : klon) = swup ( 1 : klon, 1 ) |
---|
| 220 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 221 | CALL histwrite(nid_mth, "SWupSFC",itau_w,zx_tmp_2d, |
---|
| 222 | . iim*jjmp1,ndex2d) |
---|
| 223 | c |
---|
| 224 | c zx_tmp_fi2d(1 : klon) = ZFSUP0( 1 : klon, 1) |
---|
| 225 | zx_tmp_fi2d(1 : klon) = swup0 ( 1 : klon, 1 ) |
---|
| 226 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 227 | CALL histwrite(nid_mth, "SWupSFCclr",itau_w,zx_tmp_2d, |
---|
| 228 | . iim*jjmp1,ndex2d) |
---|
| 229 | c |
---|
| 230 | c zx_tmp_fi2d(1 : klon) = ZFSDN( 1 : klon, 1) |
---|
| 231 | zx_tmp_fi2d(1 : klon) = swdn ( 1 : klon, 1 ) |
---|
| 232 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 233 | CALL histwrite(nid_mth, "SWdnSFC",itau_w,zx_tmp_2d, |
---|
| 234 | . iim*jjmp1,ndex2d) |
---|
| 235 | c |
---|
| 236 | c zx_tmp_fi2d(1 : klon) = ZFSDN0( 1 : klon, 1) |
---|
| 237 | zx_tmp_fi2d(1 : klon) = swdn0 ( 1 : klon, 1 ) |
---|
| 238 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 239 | CALL histwrite(nid_mth, "SWdnSFCclr",itau_w,zx_tmp_2d, |
---|
| 240 | . iim*jjmp1,ndex2d) |
---|
| 241 | c |
---|
[486] | 242 | zx_tmp_fi2d(1:klon)=sollw(1:klon)+sollwdown(1:klon) |
---|
| 243 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 244 | CALL histwrite(nid_mth,"LWupSFC",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
| 245 | . ndex2d) |
---|
[416] | 246 | c |
---|
[506] | 247 | zx_tmp_fi2d(1:klon)=sollw0(1:klon)+sollwdownclr(1:klon) |
---|
| 248 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 249 | CALL histwrite(nid_mth,"LWupSFCclr",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
| 250 | . ndex2d) |
---|
[416] | 251 | c |
---|
[506] | 252 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollwdown,zx_tmp_2d) |
---|
| 253 | CALL histwrite(nid_mth,"LWdnSFC",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
| 254 | . ndex2d) |
---|
[416] | 255 | c |
---|
[506] | 256 | DO i=1, klon |
---|
| 257 | sollwdownclr(i)=lwdn0(i,1) |
---|
| 258 | ENDDO !i=1, klon |
---|
[416] | 259 | c |
---|
[506] | 260 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, sollwdownclr,zx_tmp_2d) |
---|
| 261 | CALL histwrite(nid_mth,"LWdnSFCclr",itau_w,zx_tmp_2d, |
---|
| 262 | $ iim*jjmp1,ndex2d) |
---|
| 263 | c |
---|
[517] | 264 | c |
---|
| 265 | c effets des aerosols |
---|
| 266 | c |
---|
| 267 | c IF (ok_ade.OR.ok_aie) THEN |
---|
| 268 | zx_tmp_fi2d(1:klon) = topswai(1:klon) - topswad(1:klon) |
---|
| 269 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, topswad,zx_tmp_2d) |
---|
| 270 | CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d ,zx_tmp_2d) |
---|
| 271 | CALL histwrite(nid_mth,"topsad",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 272 | c |
---|
| 273 | zx_tmp_fi2d(1:klon) = solswai(1:klon) - solswad(1:klon) |
---|
| 274 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, solswad,zx_tmp_2d) |
---|
| 275 | CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d ,zx_tmp_2d) |
---|
| 276 | CALL histwrite(nid_mth,"solsad",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 277 | c |
---|
| 278 | zx_tmp_fi2d(1:klon) = topsw(1:klon) - topswai(1:klon) |
---|
| 279 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, topswai,zx_tmp_2d) |
---|
| 280 | CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d ,zx_tmp_2d) |
---|
| 281 | CALL histwrite(nid_mth,"topsai",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 282 | c |
---|
| 283 | zx_tmp_fi2d(1:klon) = solsw(1:klon) - solswai(1:klon) |
---|
| 284 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, solswai,zx_tmp_2d) |
---|
| 285 | CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d ,zx_tmp_2d) |
---|
| 286 | CALL histwrite(nid_mth,"solsai",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 287 | c endif |
---|
| 288 | c |
---|
[416] | 289 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, bils,zx_tmp_2d) |
---|
| 290 | CALL histwrite(nid_mth,"bils",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 291 | c |
---|
[506] | 292 | zx_tmp_fi2d(1:klon)=-1*sens(1:klon) |
---|
| 293 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, sens,zx_tmp_2d) |
---|
| 294 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
[416] | 295 | CALL histwrite(nid_mth,"sens",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 296 | c |
---|
| 297 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, fder,zx_tmp_2d) |
---|
| 298 | CALL histwrite(nid_mth,"fder",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 299 | c |
---|
| 300 | c |
---|
| 301 | c DO i = 1, klon |
---|
| 302 | c zx_tmp_fi2d(i) = fluxu(i,1) |
---|
| 303 | c ENDDO |
---|
| 304 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 305 | c CALL histwrite(nid_mth,"frtu",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 306 | c |
---|
| 307 | c DO i = 1, klon |
---|
| 308 | c zx_tmp_fi2d(i) = fluxv(i,1) |
---|
| 309 | c ENDDO |
---|
| 310 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 311 | c CALL histwrite(nid_mth,"frtv",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 312 | c |
---|
[471] | 313 | c |
---|
[455] | 314 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxffonte,zx_tmp_2d) |
---|
| 315 | CALL histwrite(nid_mth,"ffonte",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
| 316 | $ ndex2d) |
---|
| 317 | c |
---|
| 318 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zxfqcalving,zx_tmp_2d) |
---|
| 319 | CALL histwrite(nid_mth,"fqcalving",itau_w,zx_tmp_2d,iim*jjmp1, |
---|
| 320 | $ ndex2d) |
---|
[506] | 321 | cIM: 171003 |
---|
| 322 | DO nsrf = 1, nbsrf |
---|
| 323 | zx_tmp_fi2d(1 : klon) = fluxu( 1 : klon, 1, nsrf) |
---|
| 324 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 325 | CALL histwrite(nid_mth,"taux_"//clnsurf(nsrf),itau_w, |
---|
| 326 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 327 | C |
---|
| 328 | zx_tmp_fi2d(1 : klon) = fluxv( 1 : klon, 1, nsrf) |
---|
| 329 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 330 | CALL histwrite(nid_mth,"tauy_"//clnsurf(nsrf),itau_w, |
---|
| 331 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 332 | ENDDO |
---|
| 333 | cIM: 171003 |
---|
[455] | 334 | c |
---|
[506] | 335 | cIM if ( lev_histday.gt.1 ) then |
---|
[416] | 336 | DO nsrf = 1, nbsrf |
---|
| 337 | CYYY |
---|
[506] | 338 | IF(nsrf.GT.1) THEN |
---|
[416] | 339 | zx_tmp_fi2d(1 : klon) = pctsrf( 1 : klon, nsrf) |
---|
| 340 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 341 | CALL histwrite(nid_mth,"pourc_"//clnsurf(nsrf),itau_w, |
---|
| 342 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
[506] | 343 | ENDIF !nsrf.GT.1 |
---|
[416] | 344 | C |
---|
| 345 | zx_tmp_fi2d(1 : klon) = ftsol( 1 : klon, nsrf) |
---|
| 346 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 347 | CALL histwrite(nid_mth,"tsol_"//clnsurf(nsrf),itau_w, |
---|
| 348 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 349 | C |
---|
| 350 | zx_tmp_fi2d(1 : klon) = fluxt( 1 : klon, 1, nsrf) |
---|
| 351 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 352 | CALL histwrite(nid_mth,"sens_"//clnsurf(nsrf),itau_w, |
---|
| 353 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 354 | C |
---|
| 355 | zx_tmp_fi2d(1 : klon) = fluxlat( 1 : klon, nsrf) |
---|
| 356 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 357 | CALL histwrite(nid_mth,"lat_"//clnsurf(nsrf),itau_w, |
---|
| 358 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 359 | C |
---|
[433] | 360 | zx_tmp_fi2d(1 : klon) = fsollw( 1 : klon, nsrf) |
---|
| 361 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 362 | CALL histwrite(nid_mth,"flw_"//clnsurf(nsrf),itau_w, |
---|
| 363 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
[471] | 364 | c |
---|
[433] | 365 | zx_tmp_fi2d(1 : klon) = fsolsw( 1 : klon, nsrf) |
---|
| 366 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 367 | CALL histwrite(nid_mth,"fsw_"//clnsurf(nsrf),itau_w, |
---|
| 368 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 369 | C |
---|
| 370 | zx_tmp_fi2d(1 : klon) = wfbils( 1 : klon, nsrf) |
---|
| 371 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 372 | CALL histwrite(nid_mth,"wbils_"//clnsurf(nsrf),itau_w, |
---|
| 373 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 374 | C |
---|
[416] | 375 | |
---|
| 376 | END DO |
---|
[506] | 377 | cIM endif !lev_histday |
---|
| 378 | |
---|
[416] | 379 | c |
---|
| 380 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, cdragm,zx_tmp_2d) |
---|
| 381 | CALL histwrite(nid_mth,"cdrm",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 382 | c |
---|
| 383 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, cdragh,zx_tmp_2d) |
---|
| 384 | CALL histwrite(nid_mth,"cdrh",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 385 | c |
---|
| 386 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldl,zx_tmp_2d) |
---|
| 387 | CALL histwrite(nid_mth,"cldl",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 388 | c |
---|
| 389 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldm,zx_tmp_2d) |
---|
| 390 | CALL histwrite(nid_mth,"cldm",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 391 | c |
---|
| 392 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldh,zx_tmp_2d) |
---|
| 393 | CALL histwrite(nid_mth,"cldh",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 394 | c |
---|
| 395 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldt,zx_tmp_2d) |
---|
| 396 | CALL histwrite(nid_mth,"cldt",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 397 | c |
---|
| 398 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, cldq,zx_tmp_2d) |
---|
| 399 | CALL histwrite(nid_mth,"cldq",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 400 | c |
---|
[486] | 401 | zx_tmp_fi2d(1:klon) = flwp(1:klon) |
---|
| 402 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 403 | CALL histwrite(nid_mth,"lwp",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 404 | c |
---|
| 405 | zx_tmp_fi2d(1:klon) = fiwp(1:klon) |
---|
| 406 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 407 | CALL histwrite(nid_mth,"iwp",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 408 | c |
---|
[416] | 409 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, ue,zx_tmp_2d) |
---|
| 410 | CALL histwrite(nid_mth,"ue",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 411 | c |
---|
| 412 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, ve,zx_tmp_2d) |
---|
| 413 | CALL histwrite(nid_mth,"ve",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 414 | c |
---|
| 415 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, uq,zx_tmp_2d) |
---|
| 416 | CALL histwrite(nid_mth,"uq",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 417 | c |
---|
| 418 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, vq,zx_tmp_2d) |
---|
| 419 | CALL histwrite(nid_mth,"vq",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 420 | cKE43 |
---|
[506] | 421 | IF (iflag_con.GE.3) THEN ! sb |
---|
[416] | 422 | c |
---|
| 423 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, cape,zx_tmp_2d) |
---|
| 424 | CALL histwrite(nid_mth,"cape",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 425 | c |
---|
| 426 | CALL gr_fi_ecrit(1, klon,iim,jjmp1,pbase,zx_tmp_2d) |
---|
| 427 | CALL histwrite(nid_mth,"pbase",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 428 | c |
---|
| 429 | CALL gr_fi_ecrit(1, klon,iim,jjmp1,ema_pct,zx_tmp_2d) |
---|
| 430 | CALL histwrite(nid_mth,"ptop",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 431 | c |
---|
| 432 | CALL gr_fi_ecrit(1, klon,iim,jjmp1,ema_cbmf,zx_tmp_2d) |
---|
| 433 | CALL histwrite(nid_mth,"fbase",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 434 | c |
---|
[506] | 435 | c34EK |
---|
[416] | 436 | c |
---|
[471] | 437 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, prw,zx_tmp_2d) |
---|
| 438 | CALL histwrite(nid_mth,"prw",itau_w,zx_tmp_2d, |
---|
| 439 | . iim*jjmp1,ndex2d) |
---|
| 440 | c |
---|
[506] | 441 | ENDIF !iflag_con.GE.3 |
---|
[416] | 442 | c |
---|
[506] | 443 | c |
---|
| 444 | c |
---|
| 445 | c Champs interpolles sur des niveaux de pression |
---|
| 446 | DO k=1, nlevENS |
---|
| 447 | c |
---|
| 448 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, ulev(:,k),zx_tmp_2d) |
---|
| 449 | CALL histwrite(nid_mth,"u"//clev(k),itau_w,zx_tmp_2d, |
---|
| 450 | $ iim*jjmp1,ndex2d) |
---|
| 451 | c |
---|
| 452 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, vlev(:,k),zx_tmp_2d) |
---|
| 453 | CALL histwrite(nid_mth,"v"//clev(k),itau_w,zx_tmp_2d, |
---|
| 454 | $ iim*jjmp1,ndex2d) |
---|
| 455 | c |
---|
| 456 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, wlev(:,k),zx_tmp_2d) |
---|
| 457 | CALL histwrite(nid_mth,"w"//clev(k),itau_w,zx_tmp_2d, |
---|
| 458 | $ iim*jjmp1,ndex2d) |
---|
| 459 | c |
---|
| 460 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, philev(:,k),zx_tmp_2d) |
---|
| 461 | CALL histwrite(nid_mth,"phi"//clev(k),itau_w,zx_tmp_2d, |
---|
| 462 | $ iim*jjmp1,ndex2d) |
---|
| 463 | c |
---|
| 464 | ENDDO !nlevENS |
---|
| 465 | ENDIF !lev_histmth.GE.1 |
---|
| 466 | c |
---|
| 467 | IF(lev_histmth.GE.2) THEN |
---|
| 468 | c |
---|
[416] | 469 | c Champs 3D: |
---|
| 470 | C |
---|
[506] | 471 | c |
---|
| 472 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, flwc,zx_tmp_3d) |
---|
| 473 | CALL histwrite(nid_mth,"lwcon",itau_w,zx_tmp_3d, |
---|
| 474 | . iim*jjmp1*klev,ndex3d) |
---|
| 475 | c |
---|
| 476 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, fiwc,zx_tmp_3d) |
---|
| 477 | CALL histwrite(nid_mth,"iwcon",itau_w,zx_tmp_3d, |
---|
| 478 | . iim*jjmp1*klev,ndex3d) |
---|
| 479 | c |
---|
[416] | 480 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, t_seri, zx_tmp_3d) |
---|
| 481 | CALL histwrite(nid_mth,"temp",itau_w,zx_tmp_3d, |
---|
| 482 | . iim*jjmp1*klev,ndex3d) |
---|
| 483 | c |
---|
[506] | 484 | c#ifdef histmthNMC |
---|
| 485 | c#include "write_histmthNMC.h" |
---|
| 486 | c#endif |
---|
| 487 | c |
---|
[416] | 488 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, qx(1,1,ivap), zx_tmp_3d) |
---|
| 489 | CALL histwrite(nid_mth,"ovap",itau_w,zx_tmp_3d, |
---|
| 490 | . iim*jjmp1*klev,ndex3d) |
---|
[506] | 491 | c |
---|
[486] | 492 | cIM: 071003 |
---|
[506] | 493 | c zx_tmp_fi3d(1:klon,1:klev)=qx(1:klon,1:klev,ivap)/ |
---|
| 494 | c . (1-qx(1:klon,1:klev,ivap)) |
---|
| 495 | c CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zx_tmp_fi3d, zx_tmp_3d) |
---|
| 496 | c CALL histwrite(nid_mth,"wvap",itau_w,zx_tmp_3d, |
---|
| 497 | c . iim*jjmp1*klev,ndex3d) |
---|
[416] | 498 | c |
---|
| 499 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zphi, zx_tmp_3d) |
---|
| 500 | CALL histwrite(nid_mth,"geop",itau_w,zx_tmp_3d, |
---|
| 501 | . iim*jjmp1*klev,ndex3d) |
---|
| 502 | c |
---|
| 503 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, u_seri, zx_tmp_3d) |
---|
| 504 | CALL histwrite(nid_mth,"vitu",itau_w,zx_tmp_3d, |
---|
| 505 | . iim*jjmp1*klev,ndex3d) |
---|
| 506 | c |
---|
| 507 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, v_seri, zx_tmp_3d) |
---|
| 508 | CALL histwrite(nid_mth,"vitv",itau_w,zx_tmp_3d, |
---|
| 509 | . iim*jjmp1*klev,ndex3d) |
---|
| 510 | c |
---|
| 511 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, omega, zx_tmp_3d) |
---|
| 512 | CALL histwrite(nid_mth,"vitw",itau_w,zx_tmp_3d, |
---|
| 513 | . iim*jjmp1*klev,ndex3d) |
---|
| 514 | c |
---|
| 515 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, pplay, zx_tmp_3d) |
---|
| 516 | CALL histwrite(nid_mth,"pres",itau_w,zx_tmp_3d, |
---|
| 517 | . iim*jjmp1*klev,ndex3d) |
---|
| 518 | c |
---|
| 519 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, cldfra, zx_tmp_3d) |
---|
| 520 | CALL histwrite(nid_mth,"rneb",itau_w,zx_tmp_3d, |
---|
| 521 | . iim*jjmp1*klev,ndex3d) |
---|
| 522 | c |
---|
[433] | 523 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, rnebcon, zx_tmp_3d) |
---|
| 524 | CALL histwrite(nid_mth,"rnebcon",itau_w,zx_tmp_3d, |
---|
| 525 | . iim*jjmp1*klev,ndex3d) |
---|
| 526 | c |
---|
[416] | 527 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zx_rh, zx_tmp_3d) |
---|
| 528 | CALL histwrite(nid_mth,"rhum",itau_w,zx_tmp_3d, |
---|
| 529 | . iim*jjmp1*klev,ndex3d) |
---|
| 530 | c |
---|
[506] | 531 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, wo, zx_tmp_3d) |
---|
| 532 | CALL histwrite(nid_mth,"ozone",itau_w,zx_tmp_3d, |
---|
| 533 | . iim*jjmp1*klev,ndex3d) |
---|
| 534 | c |
---|
| 535 | cIM 22.03.04 BEG |
---|
| 536 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_t, zx_tmp_3d) |
---|
| 537 | CALL histwrite(nid_mth,"dtphy",itau_w,zx_tmp_3d, |
---|
| 538 | . iim*jjmp1*klev,ndex3d) |
---|
| 539 | c |
---|
| 540 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_qx(:,:,ivap), |
---|
| 541 | . zx_tmp_3d) |
---|
| 542 | CALL histwrite(nid_mth,"dqphy",itau_w,zx_tmp_3d, |
---|
| 543 | . iim*jjmp1*klev,ndex3d) |
---|
| 544 | cIM 22.03.04 END |
---|
| 545 | c |
---|
| 546 | ENDIF !lev_histmth.GE.2 |
---|
| 547 | c |
---|
| 548 | IF(lev_histmth.GE.3) THEN |
---|
| 549 | c |
---|
| 550 | DO nsrf=1, nbsrf |
---|
| 551 | c |
---|
| 552 | zx_tmp_fi2d(1 : klon) = falbe( 1 : klon, nsrf) |
---|
| 553 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 554 | CALL histwrite(nid_mth,"albe_"//clnsurf(nsrf),itau_w, |
---|
| 555 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 556 | C |
---|
| 557 | zx_tmp_fi2d(1 : klon) = frugs( 1 : klon, nsrf) |
---|
| 558 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d , zx_tmp_2d) |
---|
| 559 | CALL histwrite(nid_mth,"rugs_"//clnsurf(nsrf),itau_w, |
---|
| 560 | $ zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 561 | c |
---|
| 562 | zx_tmp_fi2d(1 : klon) = agesno( 1 : klon, nsrf) |
---|
| 563 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, agesno,zx_tmp_2d) |
---|
| 564 | CALL histwrite(nid_mth,"ages_"//clnsurf(nsrf),itau_w |
---|
| 565 | $ ,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 566 | c |
---|
| 567 | ENDDO !nsrf=1, nbsrf |
---|
| 568 | c |
---|
| 569 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, albsol,zx_tmp_2d) |
---|
| 570 | CALL histwrite(nid_mth,"albs",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 571 | c |
---|
| 572 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, albsollw,zx_tmp_2d) |
---|
| 573 | CALL histwrite(nid_mth,"albslw",itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 574 | c |
---|
| 575 | ENDIF !lev_histmth.GE.3 |
---|
| 576 | c |
---|
| 577 | c |
---|
| 578 | IF(lev_histmth.GE.4) THEN |
---|
| 579 | c |
---|
[471] | 580 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, clwcon0, zx_tmp_3d) |
---|
| 581 | CALL histwrite(nid_mth,"clwcon",itau_w,zx_tmp_3d, |
---|
| 582 | . iim*jjmp1*klev,ndex3d) |
---|
| 583 | c |
---|
[506] | 584 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, Ma, zx_tmp_3d) |
---|
| 585 | CALL histwrite(nid_mth,"Ma",itau_w,zx_tmp_3d, |
---|
[416] | 586 | . iim*jjmp1*klev,ndex3d) |
---|
| 587 | c |
---|
[506] | 588 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, upwd, zx_tmp_3d) |
---|
| 589 | CALL histwrite(nid_mth,"upwd",itau_w,zx_tmp_3d, |
---|
[486] | 590 | . iim*jjmp1*klev,ndex3d) |
---|
| 591 | c |
---|
[506] | 592 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, dnwd, zx_tmp_3d) |
---|
| 593 | CALL histwrite(nid_mth,"dnwd",itau_w,zx_tmp_3d, |
---|
| 594 | . iim*jjmp1*klev,ndex3d) |
---|
| 595 | c |
---|
| 596 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, dnwd0, zx_tmp_3d) |
---|
| 597 | CALL histwrite(nid_mth,"dnwd0",itau_w,zx_tmp_3d, |
---|
| 598 | . iim*jjmp1*klev,ndex3d) |
---|
| 599 | c |
---|
| 600 | c |
---|
[416] | 601 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_t_dyn, zx_tmp_3d) |
---|
| 602 | CALL histwrite(nid_mth,"dtdyn",itau_w,zx_tmp_3d, |
---|
| 603 | . iim*jjmp1*klev,ndex3d) |
---|
| 604 | c |
---|
| 605 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_q_dyn, zx_tmp_3d) |
---|
| 606 | CALL histwrite(nid_mth,"dqdyn",itau_w,zx_tmp_3d, |
---|
| 607 | . iim*jjmp1*klev,ndex3d) |
---|
| 608 | c |
---|
[486] | 609 | cIM: 101003 : K/30min ==> K/s |
---|
| 610 | zx_tmp_fi3d(1:klon,1:klev)=d_t_con(1:klon,1:klev)/pdtphys |
---|
| 611 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
[416] | 612 | CALL histwrite(nid_mth,"dtcon",itau_w,zx_tmp_3d, |
---|
| 613 | . iim*jjmp1*klev,ndex3d) |
---|
| 614 | c |
---|
| 615 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_q_con, zx_tmp_3d) |
---|
| 616 | CALL histwrite(nid_mth,"dqcon",itau_w,zx_tmp_3d, |
---|
| 617 | . iim*jjmp1*klev,ndex3d) |
---|
| 618 | c |
---|
[486] | 619 | cIM: 101003 : K/30min ==> K/s |
---|
| 620 | zx_tmp_fi3d(1:klon,1:klev)=d_t_lsc(1:klon,1:klev)/pdtphys |
---|
| 621 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
[416] | 622 | CALL histwrite(nid_mth,"dtlsc",itau_w,zx_tmp_3d, |
---|
| 623 | . iim*jjmp1*klev,ndex3d) |
---|
[486] | 624 | cIM: 071003 |
---|
| 625 | cIM: 101003 : K/30min ==> K/s |
---|
| 626 | zx_tmp_fi3d(1:klon, 1:klev)=(d_t_lsc(1:klon,1:klev)+ |
---|
| 627 | . d_t_eva(1:klon,1:klev))/pdtphys |
---|
| 628 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zx_tmp_fi3d, zx_tmp_3d) |
---|
| 629 | CALL histwrite(nid_mth,"dtlschr",itau_w,zx_tmp_3d, |
---|
| 630 | . iim*jjmp1*klev,ndex3d) |
---|
[416] | 631 | c |
---|
| 632 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_q_lsc, zx_tmp_3d) |
---|
| 633 | CALL histwrite(nid_mth,"dqlsc",itau_w,zx_tmp_3d, |
---|
| 634 | . iim*jjmp1*klev,ndex3d) |
---|
| 635 | c |
---|
[486] | 636 | cIM: 101003 : K/30min ==> K/s |
---|
| 637 | zx_tmp_fi3d(1:klon,1:klev)=d_t_vdf(1:klon,1:klev)/pdtphys |
---|
| 638 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
[416] | 639 | CALL histwrite(nid_mth,"dtvdf",itau_w,zx_tmp_3d, |
---|
| 640 | . iim*jjmp1*klev,ndex3d) |
---|
| 641 | c |
---|
| 642 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_q_vdf, zx_tmp_3d) |
---|
| 643 | CALL histwrite(nid_mth,"dqvdf",itau_w,zx_tmp_3d, |
---|
| 644 | . iim*jjmp1*klev,ndex3d) |
---|
| 645 | c |
---|
[486] | 646 | cIM: 101003 : K/30min ==> K/s |
---|
| 647 | zx_tmp_fi3d(1:klon,1:klev)=d_t_eva(1:klon,1:klev)/pdtphys |
---|
| 648 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
[416] | 649 | CALL histwrite(nid_mth,"dteva",itau_w,zx_tmp_3d, |
---|
| 650 | . iim*jjmp1*klev,ndex3d) |
---|
| 651 | c |
---|
| 652 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_q_eva, zx_tmp_3d) |
---|
| 653 | CALL histwrite(nid_mth,"dqeva",itau_w,zx_tmp_3d, |
---|
| 654 | . iim*jjmp1*klev,ndex3d) |
---|
| 655 | c |
---|
| 656 | zpt_conv = 0. |
---|
| 657 | where (ptconv) zpt_conv = 1. |
---|
| 658 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, zpt_conv, zx_tmp_3d) |
---|
| 659 | CALL histwrite(nid_mth,"ptconv",itau_w,zx_tmp_3d, |
---|
| 660 | . iim*(jjmp1)*klev,ndex3d) |
---|
| 661 | c |
---|
| 662 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, ratqs, zx_tmp_3d) |
---|
| 663 | CALL histwrite(nid_mth,"ratqs",itau_w,zx_tmp_3d, |
---|
| 664 | . iim*(jjmp1)*klev,ndex3d) |
---|
| 665 | c |
---|
[486] | 666 | cIM: 101003 : K/30min ==> K/s |
---|
| 667 | zx_tmp_fi3d(1:klon,1:klev)=d_t_ajs(1:klon,1:klev)/pdtphys |
---|
| 668 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
[416] | 669 | CALL histwrite(nid_mth,"dtajs",itau_w,zx_tmp_3d, |
---|
| 670 | . iim*jjmp1*klev,ndex3d) |
---|
| 671 | c |
---|
| 672 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_q_ajs, zx_tmp_3d) |
---|
| 673 | CALL histwrite(nid_mth,"dqajs",itau_w,zx_tmp_3d, |
---|
| 674 | . iim*jjmp1*klev,ndex3d) |
---|
| 675 | c |
---|
[486] | 676 | cIM: 101003 : K/day ==> K/s |
---|
| 677 | cIM: LMD_ARMIP3 zx_tmp_fi3d(1:klon,1:klev)=heat(1:klon,1:klev)*pdtphys/RDAY |
---|
| 678 | zx_tmp_fi3d(1:klon,1:klev)=heat(1:klon,1:klev)/RDAY |
---|
| 679 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
[416] | 680 | CALL histwrite(nid_mth,"dtswr",itau_w,zx_tmp_3d, |
---|
| 681 | . iim*jjmp1*klev,ndex3d) |
---|
| 682 | c |
---|
[486] | 683 | cIM: 101003 : K/day ==> K/s |
---|
| 684 | cIM: LMD_ARMIP3 zx_tmp_fi3d(1:klon,1:klev)=heat0(1:klon,1:klev)*pdtphys/RDAY |
---|
| 685 | zx_tmp_fi3d(1:klon,1:klev)=heat0(1:klon,1:klev)/RDAY |
---|
| 686 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
[416] | 687 | CALL histwrite(nid_mth,"dtsw0",itau_w,zx_tmp_3d, |
---|
| 688 | . iim*jjmp1*klev,ndex3d) |
---|
| 689 | c |
---|
[486] | 690 | cIM: 101003 : K/day ==> K/s |
---|
| 691 | cIM: LMD_ARMIP3 zx_tmp_fi3d(1:klon,1:klev)=-1.*cool(1:klon,1:klev)*pdtphys/RDAY |
---|
| 692 | zx_tmp_fi3d(1:klon,1:klev)=-1.*cool(1:klon,1:klev)/RDAY |
---|
| 693 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
[416] | 694 | CALL histwrite(nid_mth,"dtlwr",itau_w,zx_tmp_3d, |
---|
| 695 | . iim*jjmp1*klev,ndex3d) |
---|
| 696 | c |
---|
[486] | 697 | cIM: 101003 : K/day ==> K/s |
---|
| 698 | cIM: LMD_ARMIP3 zx_tmp_fi3d(1:klon,1:klev)=-1.*cool0(1:klon,1:klev)*pdtphys/RDAY |
---|
| 699 | zx_tmp_fi3d(1:klon,1:klev)=-1.*cool0(1:klon,1:klev)/RDAY |
---|
| 700 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
[416] | 701 | CALL histwrite(nid_mth,"dtlw0",itau_w,zx_tmp_3d, |
---|
| 702 | . iim*jjmp1*klev,ndex3d) |
---|
| 703 | c |
---|
[486] | 704 | cIM: 101003 : deja en K/s |
---|
| 705 | zx_tmp_fi3d(1:klon,1:klev)=d_t_ec(1:klon,1:klev) |
---|
| 706 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1,zx_tmp_fi3d,zx_tmp_3d) |
---|
[416] | 707 | CALL histwrite(nid_mth,"dtec",itau_w,zx_tmp_3d, |
---|
| 708 | . iim*jjmp1*klev,ndex3d) |
---|
| 709 | c |
---|
| 710 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_u_vdf, zx_tmp_3d) |
---|
| 711 | CALL histwrite(nid_mth,"duvdf",itau_w,zx_tmp_3d, |
---|
| 712 | . iim*jjmp1*klev,ndex3d) |
---|
| 713 | c |
---|
| 714 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_v_vdf, zx_tmp_3d) |
---|
| 715 | CALL histwrite(nid_mth,"dvvdf",itau_w,zx_tmp_3d, |
---|
| 716 | . iim*jjmp1*klev,ndex3d) |
---|
| 717 | c |
---|
| 718 | IF (ok_orodr) THEN |
---|
| 719 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_u_oro, zx_tmp_3d) |
---|
| 720 | CALL histwrite(nid_mth,"duoro",itau_w,zx_tmp_3d, |
---|
| 721 | . iim*jjmp1*klev,ndex3d) |
---|
| 722 | c |
---|
| 723 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_v_oro, zx_tmp_3d) |
---|
| 724 | CALL histwrite(nid_mth,"dvoro",itau_w,zx_tmp_3d, |
---|
| 725 | . iim*jjmp1*klev,ndex3d) |
---|
| 726 | c |
---|
| 727 | ENDIF |
---|
| 728 | C |
---|
| 729 | IF (ok_orolf) THEN |
---|
| 730 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_u_lif, zx_tmp_3d) |
---|
| 731 | CALL histwrite(nid_mth,"dulif",itau_w,zx_tmp_3d, |
---|
| 732 | . iim*jjmp1*klev,ndex3d) |
---|
| 733 | c |
---|
| 734 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, d_v_lif, zx_tmp_3d) |
---|
| 735 | CALL histwrite(nid_mth,"dvlif",itau_w,zx_tmp_3d, |
---|
| 736 | . iim*jjmp1*klev,ndex3d) |
---|
| 737 | ENDIF |
---|
| 738 | C |
---|
[517] | 739 | c |
---|
| 740 | c effets des aerosols |
---|
| 741 | c |
---|
| 742 | c IF (ok_ade.OR.ok_aie) THEN |
---|
| 743 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, re, zx_tmp_3d) |
---|
| 744 | CALL histwrite(nid_mth,"re",itau_w,zx_tmp_3d, |
---|
| 745 | . iim*jjmp1*klev,ndex3d) |
---|
| 746 | c |
---|
| 747 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, fl, zx_tmp_3d) |
---|
| 748 | CALL histwrite(nid_mth,"redenom",itau_w,zx_tmp_3d, |
---|
| 749 | . iim*jjmp1*klev,ndex3d) |
---|
| 750 | c |
---|
| 751 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, cldtau, zx_tmp_3d) |
---|
| 752 | CALL histwrite(nid_mth,"tau",itau_w,zx_tmp_3d, |
---|
| 753 | . iim*jjmp1*klev,ndex3d) |
---|
| 754 | c |
---|
| 755 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, cldtaupi, zx_tmp_3d) |
---|
| 756 | CALL histwrite(nid_mth,"taupi",itau_w,zx_tmp_3d, |
---|
| 757 | . iim*jjmp1*klev,ndex3d) |
---|
| 758 | c endif |
---|
| 759 | c |
---|
[416] | 760 | IF (nqmax.GE.3) THEN |
---|
| 761 | DO iq=1,nqmax-2 |
---|
| 762 | IF (iq.LE.99) THEN |
---|
| 763 | CALL gr_fi_ecrit(klev,klon,iim,jjmp1, qx(1,1,iq+2), zx_tmp_3d) |
---|
| 764 | WRITE(str2,'(i2.2)') iq |
---|
| 765 | CALL histwrite(nid_mth,"trac"//str2,itau_w,zx_tmp_3d, |
---|
| 766 | . iim*jjmp1*klev,ndex3d) |
---|
| 767 | ELSE |
---|
| 768 | PRINT*, "Trop de traceurs" |
---|
| 769 | CALL abort |
---|
| 770 | ENDIF |
---|
| 771 | ENDDO |
---|
| 772 | ENDIF |
---|
| 773 | c |
---|
[506] | 774 | ENDIF !lev_histmth.GE.4 |
---|
[416] | 775 | c |
---|
| 776 | if (ok_sync) then |
---|
| 777 | call histsync(nid_mth) |
---|
| 778 | endif |
---|
[471] | 779 | ENDIF |
---|