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