[644] | 1 | c |
---|
| 2 | c $Header$ |
---|
| 3 | c |
---|
| 4 | IF (type_run.EQ."AMIP") THEN |
---|
| 5 | c |
---|
| 6 | ndex2d = 0 |
---|
| 7 | itau_w = itau_phy + itap |
---|
| 8 | c |
---|
| 9 | c Champs 2D: |
---|
| 10 | c |
---|
| 11 | pi = ACOS(-1.) |
---|
| 12 | pir = 4.0*ATAN(1.0) / 180.0 |
---|
| 13 | c |
---|
| 14 | DO i=1, klon |
---|
| 15 | zx_tmp_fi2d(i)=(topsw(i)-toplw(i)) |
---|
| 16 | ENDDO |
---|
| 17 | c |
---|
| 18 | ok_msk=.FALSE. |
---|
| 19 | msk(1:klon)=pctsrf(1:klon,is_ter) |
---|
| 20 | CALL moyglo_pondaire(klon, zx_tmp_fi2d, airephy, |
---|
| 21 | . ok_msk, msk, moyglo) |
---|
| 22 | zx_tmp_fi2d(1:klon)=moyglo |
---|
| 23 | c |
---|
| 24 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 25 | CALL histwrite(nid_day_seri,"bilTOA",itau_w, |
---|
| 26 | . zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 27 | c |
---|
| 28 | ok_msk=.FALSE. |
---|
| 29 | CALL moyglo_pondaire(klon, bils, airephy, |
---|
| 30 | . ok_msk, msk, moyglo) |
---|
| 31 | zx_tmp_fi2d(1:klon)=moyglo |
---|
| 32 | c |
---|
| 33 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 34 | CALL histwrite(nid_day_seri,"bils",itau_w, |
---|
| 35 | . zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 36 | c |
---|
| 37 | DO k=1, klev |
---|
| 38 | DO i=1, klon |
---|
| 39 | cIM 080904 zx_tmp_fi3d(i,k)=u(i,k)**2+v(i,k)**2 |
---|
| 40 | zx_tmp_fi3d(i,k)=(u(i,k)**2+v(i,k)**2)/2. |
---|
| 41 | ENDDO |
---|
| 42 | ENDDO |
---|
| 43 | c |
---|
| 44 | CALL moyglo_pondaima(klon, klev, zx_tmp_fi3d, |
---|
| 45 | . airephy, paprs, moyglo) |
---|
| 46 | zx_tmp_fi2d(1:klon)=moyglo |
---|
| 47 | c |
---|
| 48 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 49 | CALL histwrite(nid_day_seri,"ecin",itau_w, |
---|
| 50 | . zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 51 | c |
---|
| 52 | cIM 151004 BEG |
---|
| 53 | IF(1.EQ.0) THEN |
---|
| 54 | c |
---|
| 55 | DO k=1, klev |
---|
| 56 | DO i=1, klon |
---|
| 57 | zx_tmp_fi3d(i,k)=u_seri(i,k)*RA*cos(pir* rlat(i)) |
---|
| 58 | ENDDO |
---|
| 59 | ENDDO |
---|
| 60 | c |
---|
| 61 | CALL moyglo_pondaima(klon, klev, zx_tmp_fi3d, |
---|
| 62 | . airephy, paprs, moyglo) |
---|
| 63 | zx_tmp_fi2d(1:klon)=moyglo |
---|
| 64 | c |
---|
| 65 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 66 | CALL histwrite(nid_day_seri,"momang",itau_w,zx_tmp_2d, |
---|
| 67 | . iim*jjmp1,ndex2d) |
---|
| 68 | c |
---|
| 69 | c friction torque |
---|
| 70 | c |
---|
| 71 | DO i=1, klon |
---|
| 72 | zx_tmp_fi2d(i)=zxfluxu(i,1)*RA* cos(pir* rlat(i)) |
---|
| 73 | ENDDO |
---|
| 74 | c |
---|
| 75 | ok_msk=.FALSE. |
---|
| 76 | CALL moyglo_pondaire(klon, zx_tmp_fi2d, airephy, |
---|
| 77 | . ok_msk, msk, moyglo) |
---|
| 78 | zx_tmp_fi2d(1:klon)=moyglo |
---|
| 79 | c |
---|
| 80 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 81 | CALL histwrite(nid_day_seri,"frictor",itau_w,zx_tmp_2d, |
---|
| 82 | . iim*jjmp1,ndex2d) |
---|
| 83 | c |
---|
| 84 | c mountain torque |
---|
| 85 | c |
---|
| 86 | cIM 190504 BEG |
---|
| 87 | CALL gr_fi_dyn(1,klon,iim+1,jjm+1,airephy,airedyn) |
---|
| 88 | CALL gr_fi_dyn(klev+1,klon,iim+1,jjm+1,paprs,padyn) |
---|
| 89 | CALL gr_fi_dyn(1,klon,iim+1,jjm+1,rlat,rlatdyn) |
---|
| 90 | mountor=0. |
---|
| 91 | airetot=0. |
---|
| 92 | DO j = 1, jjmp1 |
---|
| 93 | DO i = 1, iim+1 |
---|
| 94 | ij=i+(iim+1)*(j-1) |
---|
| 95 | zx_tmp(ij)=0. |
---|
| 96 | DO k = 1, klev |
---|
| 97 | zx_tmp(ij)=zx_tmp(ij)+dudyn(i,j,k)*airedyn(i,j)* |
---|
| 98 | $ (padyn(i,j,k+1)-padyn(i,j,k))/RG |
---|
| 99 | airetot=airetot+airedyn(i,j) |
---|
| 100 | ENDDO |
---|
| 101 | cIM 190504 mountor=mountor+zx_tmp(ij)*airedyn(i,j)*RA* |
---|
| 102 | mountor=mountor+zx_tmp(ij)*RA* |
---|
| 103 | $ cos(pir* rlatdyn(i,j)) |
---|
| 104 | ENDDO |
---|
| 105 | ENDDO |
---|
| 106 | cIM 151004 BEG |
---|
| 107 | IF(itap.EQ.1) PRINT*,'airetot=',airetot,airetot/klev |
---|
| 108 | cIM 151004 END |
---|
| 109 | cIM 190504 mountor=mountor/(airetot*airetot) |
---|
| 110 | mountor=mountor/airetot |
---|
| 111 | c |
---|
| 112 | cIM 190504 END |
---|
| 113 | zx_tmp_2d(1:iim,1:jjmp1)=mountor |
---|
| 114 | CALL histwrite(nid_day_seri,"mountor",itau_w,zx_tmp_2d, |
---|
| 115 | . iim*jjmp1,ndex2d) |
---|
| 116 | c |
---|
| 117 | ENDIF !(1.EQ.0) THEN |
---|
| 118 | c |
---|
| 119 | c |
---|
| 120 | CALL gr_fi_dyn(1,klon,iim+1,jjm+1,airephy,airedyn) |
---|
| 121 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,airephy,zx_tmp_2d) |
---|
| 122 | airetot=0. |
---|
| 123 | c DO j = 1, jjmp1 |
---|
| 124 | c DO i = 1, iim+1 |
---|
| 125 | c ij=i+(iim+1)*(j-1) |
---|
| 126 | c DO k = 1, klev |
---|
| 127 | c airetot=airetot+airedyn(i,j) |
---|
| 128 | c airetot=airetot+airedyn(i,j) |
---|
| 129 | c ENDDO !k |
---|
| 130 | c ENDDO !i |
---|
| 131 | c ENDDO !j |
---|
| 132 | c |
---|
| 133 | DO i=1, klon |
---|
| 134 | airetot=airetot+airephy(i) |
---|
| 135 | ENDDO |
---|
| 136 | c IF(itap.EQ.1) PRINT*,'airetotphy=',airetot |
---|
| 137 | c |
---|
| 138 | airetot=0. |
---|
| 139 | DO j=1, jjmp1 |
---|
| 140 | DO i=1, iim |
---|
| 141 | airetot=airetot+zx_tmp_2d(i,j) |
---|
| 142 | ENDDO |
---|
| 143 | ENDDO |
---|
| 144 | c |
---|
| 145 | c IF(itap.EQ.1) PRINT*,'airetotij=',airetot, |
---|
| 146 | c $ '4piR2',4.*pi*RA*RA |
---|
| 147 | c |
---|
| 148 | zx_tmp_fi2d(1:klon)=aam/airetot |
---|
| 149 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 150 | CALL histwrite(nid_day_seri,"momang",itau_w,zx_tmp_2d, |
---|
| 151 | . iim*jjmp1,ndex2d) |
---|
| 152 | c |
---|
| 153 | zx_tmp_fi2d(1:klon)=torsfc/airetot |
---|
| 154 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 155 | CALL histwrite(nid_day_seri,"torsfc",itau_w,zx_tmp_2d, |
---|
| 156 | . iim*jjmp1,ndex2d) |
---|
| 157 | c |
---|
| 158 | cIM 151004 END |
---|
| 159 | c |
---|
| 160 | CALL moyglo_pondmass(klon, klev, t_seri, |
---|
| 161 | . airephy, paprs, moyglo) |
---|
| 162 | zx_tmp_fi2d(1:klon)=moyglo |
---|
| 163 | c |
---|
| 164 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 165 | CALL histwrite(nid_day_seri,"tamv",itau_w, |
---|
| 166 | . zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 167 | c |
---|
| 168 | ok_msk=.FALSE. |
---|
| 169 | CALL moyglo_pondaire(klon, paprs(:,1), airephy, |
---|
| 170 | . ok_msk, msk, moyglo) |
---|
| 171 | zx_tmp_fi2d(1:klon)=moyglo |
---|
| 172 | c |
---|
| 173 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 174 | CALL histwrite(nid_day_seri,"psol",itau_w, |
---|
| 175 | . zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 176 | c |
---|
| 177 | ok_msk=.FALSE. |
---|
| 178 | CALL moyglo_pondaire(klon, evap, airephy, |
---|
| 179 | . ok_msk, msk, moyglo) |
---|
| 180 | zx_tmp_fi2d(1:klon)=moyglo |
---|
| 181 | c |
---|
| 182 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) |
---|
| 183 | CALL histwrite(nid_day_seri,"evap",itau_w, |
---|
| 184 | . zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 185 | c |
---|
| 186 | c DO i=1, klon |
---|
| 187 | c zx_tmp_fi2d(i)=SnowFrac(i,is_ter) |
---|
| 188 | c ENDDO |
---|
| 189 | c |
---|
| 190 | c ok_msk=.TRUE. |
---|
| 191 | c msk(1:klon)=pctsrf_new(1:klon,is_ter) |
---|
| 192 | c CALL moyglo_pondaire(klon, zx_tmp_fi2d, airephy, |
---|
| 193 | c . ok_msk, msk, moyglo) |
---|
| 194 | c zx_tmp_fi2d(1:klon)=moyglo |
---|
| 195 | c |
---|
| 196 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 197 | c CALL histwrite(nid_day_seri,"SnowFrac", |
---|
| 198 | c . itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 199 | c |
---|
| 200 | c DO i=1, klon |
---|
| 201 | cIM 080904 zx_tmp_fi2d(i)=zsnow_mass(i)/330.*rowl |
---|
| 202 | c zx_tmp_fi2d(i)=zsnow_mass(i) |
---|
| 203 | c ENDDO |
---|
| 204 | c |
---|
| 205 | cIM 140904 ok_msk=.FALSE. |
---|
| 206 | c ok_msk=.TRUE. |
---|
| 207 | c msk(1:klon)=pctsrf(1:klon,is_ter) |
---|
| 208 | c CALL moyglo_pondaire(klon, zx_tmp_fi2d, airephy, |
---|
| 209 | c . ok_msk, msk, moyglo) |
---|
| 210 | c zx_tmp_fi2d(1:klon)=moyglo |
---|
| 211 | c |
---|
| 212 | c CALL gr_fi_ecrit(1, klon,iim,jjmp1,zx_tmp_fi2d,zx_tmp_2d) |
---|
| 213 | c CALL histwrite(nid_day_seri,"snow_depth",itau_w, |
---|
| 214 | c . zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 215 | c |
---|
| 216 | DO i=1, klon |
---|
| 217 | zx_tmp_fi2d(i)=ftsol(i,is_oce) |
---|
| 218 | ENDDO |
---|
| 219 | c |
---|
| 220 | ok_msk=.TRUE. |
---|
| 221 | msk(1:klon)=pctsrf(1:klon,is_oce) |
---|
| 222 | CALL moyglo_pondaire(klon, zx_tmp_fi2d, airephy, |
---|
| 223 | . ok_msk, msk, moyglo) |
---|
| 224 | zx_tmp_fi2d(1:klon)=moyglo |
---|
| 225 | c |
---|
| 226 | CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d, zx_tmp_2d) |
---|
| 227 | CALL histwrite(nid_day_seri,"tsol_"//clnsurf(is_oce), |
---|
| 228 | $ itau_w,zx_tmp_2d,iim*jjmp1,ndex2d) |
---|
| 229 | c |
---|
| 230 | c================================================================= |
---|
| 231 | c================================================================= |
---|
| 232 | c================================================================= |
---|
| 233 | c |
---|
| 234 | if (ok_sync) then |
---|
| 235 | call histsync(nid_day_seri) |
---|
| 236 | endif |
---|
| 237 | c |
---|
| 238 | ENDIF !fin test sur type_run.EQ."AMIP" |
---|