[524] | 1 | ! |
---|
| 2 | c |
---|
| 3 | c |
---|
| 4 | SUBROUTINE phystokenc ( |
---|
| 5 | I nlon,nlev,pdtphys,rlon,rlat, |
---|
| 6 | I pt,pmfu, pmfd, pen_u, pde_u, pen_d, pde_d, |
---|
[541] | 7 | I pfm_therm,pentr_therm, |
---|
[1067] | 8 | I cdragh, pcoefh,yu1,yv1,ftsol,pctsrf, |
---|
[541] | 9 | I frac_impa,frac_nucl, |
---|
[524] | 10 | I pphis,paire,dtime,itap) |
---|
| 11 | USE ioipsl |
---|
[766] | 12 | USE dimphy |
---|
[1146] | 13 | USE infotrac, ONLY : nqtot |
---|
[766] | 14 | USE iophy |
---|
[524] | 15 | IMPLICIT none |
---|
| 16 | |
---|
| 17 | c====================================================================== |
---|
| 18 | c Auteur(s) FH |
---|
| 19 | c Objet: Moniteur general des tendances traceurs |
---|
| 20 | c |
---|
| 21 | |
---|
| 22 | c====================================================================== |
---|
| 23 | #include "dimensions.h" |
---|
| 24 | #include "tracstoke.h" |
---|
| 25 | #include "indicesol.h" |
---|
| 26 | #include "control.h" |
---|
| 27 | c====================================================================== |
---|
| 28 | |
---|
| 29 | c Arguments: |
---|
| 30 | c |
---|
| 31 | c EN ENTREE: |
---|
| 32 | c ========== |
---|
| 33 | c |
---|
| 34 | c divers: |
---|
| 35 | c ------- |
---|
| 36 | c |
---|
| 37 | integer nlon ! nombre de points horizontaux |
---|
| 38 | integer nlev ! nombre de couches verticales |
---|
| 39 | real pdtphys ! pas d'integration pour la physique (seconde) |
---|
| 40 | c |
---|
[541] | 41 | integer physid, itap |
---|
| 42 | save physid |
---|
[766] | 43 | c$OMP THREADPRIVATE(physid) |
---|
[541] | 44 | integer ndex2d(iim*(jjm+1)),ndex3d(iim*(jjm+1)*klev) |
---|
[524] | 45 | |
---|
| 46 | c convection: |
---|
| 47 | c ----------- |
---|
| 48 | c |
---|
| 49 | REAL pmfu(klon,klev) ! flux de masse dans le panache montant |
---|
| 50 | REAL pmfd(klon,klev) ! flux de masse dans le panache descendant |
---|
| 51 | REAL pen_u(klon,klev) ! flux entraine dans le panache montant |
---|
| 52 | REAL pde_u(klon,klev) ! flux detraine dans le panache montant |
---|
| 53 | REAL pen_d(klon,klev) ! flux entraine dans le panache descendant |
---|
| 54 | REAL pde_d(klon,klev) ! flux detraine dans le panache descendant |
---|
[766] | 55 | real pt(klon,klev) |
---|
| 56 | REAL,allocatable,save :: t(:,:) |
---|
| 57 | c$OMP THREADPRIVATE(t) |
---|
[524] | 58 | c |
---|
| 59 | REAL rlon(klon), rlat(klon), dtime |
---|
| 60 | REAL zx_tmp_3d(iim,jjm+1,klev),zx_tmp_2d(iim,jjm+1) |
---|
| 61 | |
---|
| 62 | c Couche limite: |
---|
| 63 | c -------------- |
---|
| 64 | c |
---|
[1067] | 65 | REAL cdragh(klon) ! cdrag |
---|
| 66 | REAL pcoefh(klon,klev) ! coeff melange CL |
---|
| 67 | REAL pcoefh_buf(klon,klev) ! coeff melange CL + cdrag |
---|
[524] | 68 | REAL yv1(klon) |
---|
| 69 | REAL yu1(klon),pphis(klon),paire(klon) |
---|
[541] | 70 | |
---|
| 71 | c Les Thermiques : (Abderr 25 11 02) |
---|
| 72 | c --------------- |
---|
| 73 | REAL pfm_therm(klon,klev+1) |
---|
[766] | 74 | real fm_therm1(klon,klev) |
---|
[541] | 75 | REAL pentr_therm(klon,klev) |
---|
[766] | 76 | |
---|
| 77 | REAL,allocatable,save :: entr_therm(:,:) |
---|
| 78 | REAL,allocatable,save :: fm_therm(:,:) |
---|
| 79 | c$OMP THREADPRIVATE(entr_therm) |
---|
| 80 | c$OMP THREADPRIVATE(fm_therm) |
---|
[524] | 81 | c |
---|
| 82 | c Lessivage: |
---|
| 83 | c ---------- |
---|
| 84 | c |
---|
[541] | 85 | REAL frac_impa(klon,klev) |
---|
| 86 | REAL frac_nucl(klon,klev) |
---|
[524] | 87 | c |
---|
| 88 | c Arguments necessaires pour les sources et puits de traceur |
---|
| 89 | C |
---|
| 90 | real ftsol(klon,nbsrf) ! Temperature du sol (surf)(Kelvin) |
---|
| 91 | real pctsrf(klon,nbsrf) ! Pourcentage de sol f(nature du sol) |
---|
| 92 | c====================================================================== |
---|
| 93 | c |
---|
| 94 | INTEGER i, k |
---|
| 95 | c |
---|
[766] | 96 | REAL,allocatable,save :: mfu(:,:) ! flux de masse dans le panache montant |
---|
| 97 | REAL,allocatable,save :: mfd(:,:) ! flux de masse dans le panache descendant |
---|
| 98 | REAL,allocatable,save :: en_u(:,:) ! flux entraine dans le panache montant |
---|
| 99 | REAL,allocatable,save :: de_u(:,:) ! flux detraine dans le panache montant |
---|
| 100 | REAL,allocatable,save :: en_d(:,:) ! flux entraine dans le panache descendant |
---|
| 101 | REAL,allocatable,save :: de_d(:,:) ! flux detraine dans le panache descendant |
---|
| 102 | REAL,allocatable,save :: coefh(:,:) ! flux detraine dans le panache descendant |
---|
[524] | 103 | |
---|
[766] | 104 | REAL,allocatable,save :: pyu1(:) |
---|
| 105 | REAL,allocatable,save :: pyv1(:) |
---|
| 106 | REAL,allocatable,save :: pftsol(:,:) |
---|
| 107 | REAL,allocatable,save :: ppsrf(:,:) |
---|
| 108 | c$OMP THREADPRIVATE(mfu,mfd,en_u,de_u,en_d,de_d,coefh) |
---|
| 109 | c$OMP THREADPRIVATE(pyu1,pyv1,pftsol,ppsrf) |
---|
[524] | 110 | real pftsol1(klon),pftsol2(klon),pftsol3(klon),pftsol4(klon) |
---|
| 111 | real ppsrf1(klon),ppsrf2(klon),ppsrf3(klon),ppsrf4(klon) |
---|
| 112 | |
---|
| 113 | REAL dtcum |
---|
| 114 | |
---|
| 115 | integer iadvtr,irec |
---|
| 116 | real zmin,zmax |
---|
[541] | 117 | logical ok_sync |
---|
| 118 | |
---|
[766] | 119 | save dtcum |
---|
[524] | 120 | save iadvtr,irec |
---|
[766] | 121 | c$OMP THREADPRIVATE(dtcum,iadvtr,irec) |
---|
[524] | 122 | data iadvtr,irec/0,1/ |
---|
[766] | 123 | logical,save :: first=.true. |
---|
| 124 | c$OMP THREADPRIVATE(first) |
---|
[1534] | 125 | logical, parameter :: lstokenc=.FALSE. |
---|
[524] | 126 | c |
---|
| 127 | c Couche limite: |
---|
| 128 | c====================================================================== |
---|
| 129 | |
---|
[1067] | 130 | c Dans le meme vecteur on recombine le drag et les coeff d'echange |
---|
| 131 | pcoefh_buf(:,1) = cdragh(:) |
---|
| 132 | pcoefh_buf(:,2:klev) = pcoefh(:,2:klev) |
---|
| 133 | |
---|
[541] | 134 | ok_sync = .true. |
---|
| 135 | print*,'Dans phystokenc.F' |
---|
[524] | 136 | print*,'iadvtr= ',iadvtr |
---|
| 137 | print*,'istphy= ',istphy |
---|
| 138 | print*,'istdyn= ',istdyn |
---|
| 139 | |
---|
[766] | 140 | if (first) then |
---|
| 141 | |
---|
| 142 | allocate( t(klon,klev)) |
---|
| 143 | allocate( mfu(klon,klev)) |
---|
| 144 | allocate( mfd(klon,klev)) |
---|
| 145 | allocate( en_u(klon,klev)) |
---|
| 146 | allocate( de_u(klon,klev)) |
---|
| 147 | allocate( en_d(klon,klev)) |
---|
| 148 | allocate( de_d(klon,klev)) |
---|
| 149 | allocate( coefh(klon,klev)) |
---|
| 150 | allocate( entr_therm(klon,klev)) |
---|
| 151 | allocate( fm_therm(klon,klev)) |
---|
| 152 | allocate( pyu1(klon)) |
---|
| 153 | allocate( pyv1(klon)) |
---|
| 154 | allocate( pftsol(klon,nbsrf)) |
---|
| 155 | allocate( ppsrf(klon,nbsrf)) |
---|
| 156 | |
---|
| 157 | first=.false. |
---|
| 158 | endif |
---|
| 159 | |
---|
[524] | 160 | IF (iadvtr.eq.0) THEN |
---|
| 161 | |
---|
| 162 | CALL initphysto('phystoke', |
---|
[1146] | 163 | . rlon,rlat,dtime, dtime*istphy,dtime*istphy,nqtot,physid) |
---|
[524] | 164 | |
---|
| 165 | write(*,*) 'apres initphysto ds phystokenc' |
---|
| 166 | |
---|
| 167 | |
---|
| 168 | ENDIF |
---|
| 169 | c |
---|
[541] | 170 | ndex2d = 0 |
---|
| 171 | ndex3d = 0 |
---|
[1534] | 172 | i=itap |
---|
[766] | 173 | cym CALL gr_fi_ecrit(1,klon,iim,jjm+1,pphis,zx_tmp_2d) |
---|
[1534] | 174 | CALL histwrite_phy(physid,lstokenc,"phis",i,pphis) |
---|
[541] | 175 | c |
---|
| 176 | i=itap |
---|
[766] | 177 | cym CALL gr_fi_ecrit(1,klon,iim,jjm+1,paire,zx_tmp_2d) |
---|
[1534] | 178 | CALL histwrite_phy(physid,lstokenc,"aire",i,paire) |
---|
[541] | 179 | |
---|
[524] | 180 | iadvtr=iadvtr+1 |
---|
| 181 | c |
---|
| 182 | if (mod(iadvtr,istphy).eq.1.or.istphy.eq.1) then |
---|
| 183 | print*,'reinitialisation des champs cumules |
---|
| 184 | s a iadvtr=',iadvtr |
---|
| 185 | do k=1,klev |
---|
| 186 | do i=1,klon |
---|
| 187 | mfu(i,k)=0. |
---|
| 188 | mfd(i,k)=0. |
---|
| 189 | en_u(i,k)=0. |
---|
| 190 | de_u(i,k)=0. |
---|
| 191 | en_d(i,k)=0. |
---|
| 192 | de_d(i,k)=0. |
---|
| 193 | coefh(i,k)=0. |
---|
[541] | 194 | t(i,k)=0. |
---|
| 195 | fm_therm(i,k)=0. |
---|
| 196 | entr_therm(i,k)=0. |
---|
[524] | 197 | enddo |
---|
| 198 | enddo |
---|
| 199 | do i=1,klon |
---|
| 200 | pyv1(i)=0. |
---|
| 201 | pyu1(i)=0. |
---|
| 202 | end do |
---|
| 203 | do k=1,nbsrf |
---|
| 204 | do i=1,klon |
---|
| 205 | pftsol(i,k)=0. |
---|
| 206 | ppsrf(i,k)=0. |
---|
| 207 | enddo |
---|
| 208 | enddo |
---|
| 209 | |
---|
| 210 | dtcum=0. |
---|
| 211 | endif |
---|
| 212 | |
---|
| 213 | do k=1,klev |
---|
| 214 | do i=1,klon |
---|
| 215 | mfu(i,k)=mfu(i,k)+pmfu(i,k)*pdtphys |
---|
| 216 | mfd(i,k)=mfd(i,k)+pmfd(i,k)*pdtphys |
---|
| 217 | en_u(i,k)=en_u(i,k)+pen_u(i,k)*pdtphys |
---|
| 218 | de_u(i,k)=de_u(i,k)+pde_u(i,k)*pdtphys |
---|
| 219 | en_d(i,k)=en_d(i,k)+pen_d(i,k)*pdtphys |
---|
| 220 | de_d(i,k)=de_d(i,k)+pde_d(i,k)*pdtphys |
---|
[1067] | 221 | coefh(i,k)=coefh(i,k)+pcoefh_buf(i,k)*pdtphys |
---|
[541] | 222 | t(i,k)=t(i,k)+pt(i,k)*pdtphys |
---|
| 223 | fm_therm(i,k)=fm_therm(i,k)+pfm_therm(i,k)*pdtphys |
---|
| 224 | entr_therm(i,k)=entr_therm(i,k)+pentr_therm(i,k)*pdtphys |
---|
[524] | 225 | enddo |
---|
| 226 | enddo |
---|
| 227 | do i=1,klon |
---|
| 228 | pyv1(i)=pyv1(i)+yv1(i)*pdtphys |
---|
| 229 | pyu1(i)=pyu1(i)+yu1(i)*pdtphys |
---|
| 230 | end do |
---|
| 231 | do k=1,nbsrf |
---|
| 232 | do i=1,klon |
---|
| 233 | pftsol(i,k)=pftsol(i,k)+ftsol(i,k)*pdtphys |
---|
| 234 | ppsrf(i,k)=ppsrf(i,k)+pctsrf(i,k)*pdtphys |
---|
| 235 | enddo |
---|
| 236 | enddo |
---|
| 237 | |
---|
| 238 | dtcum=dtcum+pdtphys |
---|
[541] | 239 | |
---|
| 240 | IF(mod(iadvtr,istphy).eq.0) THEN |
---|
[524] | 241 | c |
---|
| 242 | c normalisation par le temps cumule |
---|
| 243 | do k=1,klev |
---|
| 244 | do i=1,klon |
---|
| 245 | mfu(i,k)=mfu(i,k)/dtcum |
---|
| 246 | mfd(i,k)=mfd(i,k)/dtcum |
---|
| 247 | en_u(i,k)=en_u(i,k)/dtcum |
---|
| 248 | de_u(i,k)=de_u(i,k)/dtcum |
---|
| 249 | en_d(i,k)=en_d(i,k)/dtcum |
---|
| 250 | de_d(i,k)=de_d(i,k)/dtcum |
---|
| 251 | coefh(i,k)=coefh(i,k)/dtcum |
---|
[541] | 252 | c Unitel a enlever |
---|
| 253 | t(i,k)=t(i,k)/dtcum |
---|
| 254 | fm_therm(i,k)=fm_therm(i,k)/dtcum |
---|
| 255 | entr_therm(i,k)=entr_therm(i,k)/dtcum |
---|
[524] | 256 | enddo |
---|
| 257 | enddo |
---|
| 258 | do i=1,klon |
---|
| 259 | pyv1(i)=pyv1(i)/dtcum |
---|
| 260 | pyu1(i)=pyu1(i)/dtcum |
---|
| 261 | end do |
---|
[541] | 262 | do k=1,nbsrf |
---|
[524] | 263 | do i=1,klon |
---|
| 264 | pftsol(i,k)=pftsol(i,k)/dtcum |
---|
| 265 | pftsol1(i) = pftsol(i,1) |
---|
| 266 | pftsol2(i) = pftsol(i,2) |
---|
| 267 | pftsol3(i) = pftsol(i,3) |
---|
| 268 | pftsol4(i) = pftsol(i,4) |
---|
| 269 | |
---|
[541] | 270 | ppsrf(i,k)=ppsrf(i,k)/dtcum |
---|
[524] | 271 | ppsrf1(i) = ppsrf(i,1) |
---|
| 272 | ppsrf2(i) = ppsrf(i,2) |
---|
| 273 | ppsrf3(i) = ppsrf(i,3) |
---|
| 274 | ppsrf4(i) = ppsrf(i,4) |
---|
| 275 | |
---|
| 276 | enddo |
---|
[541] | 277 | enddo |
---|
[524] | 278 | c |
---|
| 279 | c ecriture des champs |
---|
| 280 | c |
---|
| 281 | irec=irec+1 |
---|
| 282 | |
---|
| 283 | ccccc |
---|
[766] | 284 | cym CALL gr_fi_ecrit(klev,klon,iim,jjm+1, t, zx_tmp_3d) |
---|
[1534] | 285 | CALL histwrite_phy(physid,lstokenc,"t",itap,t) |
---|
[524] | 286 | |
---|
[766] | 287 | cym CALL gr_fi_ecrit(klev,klon,iim,jjm+1, mfu, zx_tmp_3d) |
---|
[1534] | 288 | CALL histwrite_phy(physid,lstokenc,"mfu",itap,mfu) |
---|
[766] | 289 | cym CALL gr_fi_ecrit(klev,klon,iim,jjm+1, mfd, zx_tmp_3d) |
---|
[1534] | 290 | CALL histwrite_phy(physid,lstokenc,"mfd",itap,mfd) |
---|
[766] | 291 | cym CALL gr_fi_ecrit(klev,klon,iim,jjm+1, en_u, zx_tmp_3d) |
---|
[1534] | 292 | CALL histwrite_phy(physid,lstokenc,"en_u",itap,en_u) |
---|
[766] | 293 | cym CALL gr_fi_ecrit(klev,klon,iim,jjm+1, de_u, zx_tmp_3d) |
---|
[1534] | 294 | CALL histwrite_phy(physid,lstokenc,"de_u",itap,de_u) |
---|
[766] | 295 | cym CALL gr_fi_ecrit(klev,klon,iim,jjm+1, en_d, zx_tmp_3d) |
---|
[1534] | 296 | CALL histwrite_phy(physid,lstokenc,"en_d",itap,en_d) |
---|
[766] | 297 | cym CALL gr_fi_ecrit(klev,klon,iim,jjm+1, de_d, zx_tmp_3d) |
---|
[1534] | 298 | CALL histwrite_phy(physid,lstokenc,"de_d",itap,de_d) |
---|
[766] | 299 | cym CALL gr_fi_ecrit(klev,klon,iim,jjm+1, coefh, zx_tmp_3d) |
---|
[1534] | 300 | CALL histwrite_phy(physid,lstokenc,"coefh",itap,coefh) |
---|
[541] | 301 | |
---|
| 302 | c ajou... |
---|
| 303 | do k=1,klev |
---|
| 304 | do i=1,klon |
---|
| 305 | fm_therm1(i,k)=fm_therm(i,k) |
---|
| 306 | enddo |
---|
| 307 | enddo |
---|
| 308 | |
---|
[766] | 309 | cym CALL gr_fi_ecrit(klev,klon,iim,jjm+1, fm_therm1, zx_tmp_3d) |
---|
[1534] | 310 | CALL histwrite_phy(physid,lstokenc,"fm_th",itap,fm_therm1) |
---|
[541] | 311 | c |
---|
[766] | 312 | cym CALL gr_fi_ecrit(klev,klon,iim,jjm+1, entr_therm, zx_tmp_3d) |
---|
[1534] | 313 | CALL histwrite_phy(physid,lstokenc,"en_th",itap,entr_therm) |
---|
[524] | 314 | cccc |
---|
[766] | 315 | cym CALL gr_fi_ecrit(klev,klon,iim,jjm+1,frac_impa,zx_tmp_3d) |
---|
[1534] | 316 | CALL histwrite_phy(physid,lstokenc,"frac_impa",itap, |
---|
| 317 | $frac_impa) |
---|
[524] | 318 | |
---|
[766] | 319 | cym CALL gr_fi_ecrit(klev,klon,iim,jjm+1,frac_nucl,zx_tmp_3d) |
---|
[1534] | 320 | CALL histwrite_phy(physid,lstokenc,"frac_nucl",itap, |
---|
| 321 | $frac_nucl) |
---|
[541] | 322 | |
---|
[766] | 323 | cym CALL gr_fi_ecrit(1, klon,iim,jjm+1, pyu1,zx_tmp_2d) |
---|
[1534] | 324 | CALL histwrite_phy(physid,lstokenc,"pyu1",itap,pyu1) |
---|
[541] | 325 | |
---|
[766] | 326 | cym CALL gr_fi_ecrit(1, klon,iim,jjm+1, pyv1,zx_tmp_2d) |
---|
[1534] | 327 | CALL histwrite_phy(physid,lstokenc,"pyv1",itap,pyv1) |
---|
[541] | 328 | |
---|
[766] | 329 | cym CALL gr_fi_ecrit(1,klon,iim,jjm+1, pftsol1, zx_tmp_2d) |
---|
[1534] | 330 | CALL histwrite_phy(physid,lstokenc,"ftsol1",itap,pftsol1) |
---|
[766] | 331 | cym CALL gr_fi_ecrit(1,klon,iim,jjm+1, pftsol2, zx_tmp_2d) |
---|
[1534] | 332 | CALL histwrite_phy(physid,lstokenc,"ftsol2",itap,pftsol2) |
---|
[766] | 333 | cym CALL gr_fi_ecrit(1,klon,iim,jjm+1, pftsol3, zx_tmp_2d) |
---|
[1534] | 334 | CALL histwrite_phy(physid,lstokenc,"ftsol3",itap,pftsol3) |
---|
[766] | 335 | cym CALL gr_fi_ecrit(1,klon,iim,jjm+1, pftsol4, zx_tmp_2d) |
---|
[1534] | 336 | CALL histwrite_phy(physid,lstokenc,"ftsol4",itap,pftsol4) |
---|
[524] | 337 | |
---|
[766] | 338 | cym CALL gr_fi_ecrit(1,klon,iim,jjm+1, ppsrf1, zx_tmp_2d) |
---|
[1534] | 339 | CALL histwrite_phy(physid,lstokenc,"psrf1",itap,ppsrf1) |
---|
[766] | 340 | cym CALL gr_fi_ecrit(1,klon,iim,jjm+1, ppsrf2, zx_tmp_2d) |
---|
[1534] | 341 | CALL histwrite_phy(physid,lstokenc,"psrf2",itap,ppsrf2) |
---|
[766] | 342 | cym CALL gr_fi_ecrit(1,klon,iim,jjm+1, ppsrf3, zx_tmp_2d) |
---|
[1534] | 343 | CALL histwrite_phy(physid,lstokenc,"psrf3",itap,ppsrf3) |
---|
[766] | 344 | cym CALL gr_fi_ecrit(1,klon,iim,jjm+1, ppsrf4, zx_tmp_2d) |
---|
[1534] | 345 | CALL histwrite_phy(physid,lstokenc,"psrf4",itap,ppsrf4) |
---|
[524] | 346 | |
---|
[766] | 347 | c$OMP MASTER |
---|
[541] | 348 | if (ok_sync) call histsync(physid) |
---|
[766] | 349 | c$OMP END MASTER |
---|
[541] | 350 | c if (ok_sync) call histsync |
---|
| 351 | |
---|
[524] | 352 | c |
---|
[541] | 353 | cAA Test sur la valeur des coefficients de lessivage |
---|
[524] | 354 | c |
---|
| 355 | zmin=1e33 |
---|
| 356 | zmax=-1e33 |
---|
| 357 | do k=1,klev |
---|
| 358 | do i=1,klon |
---|
| 359 | zmax=max(zmax,frac_nucl(i,k)) |
---|
| 360 | zmin=min(zmin,frac_nucl(i,k)) |
---|
| 361 | enddo |
---|
| 362 | enddo |
---|
| 363 | Print*,'------ coefs de lessivage (min et max) --------' |
---|
| 364 | Print*,'facteur de nucleation ',zmin,zmax |
---|
| 365 | zmin=1e33 |
---|
| 366 | zmax=-1e33 |
---|
| 367 | do k=1,klev |
---|
| 368 | do i=1,klon |
---|
| 369 | zmax=max(zmax,frac_impa(i,k)) |
---|
| 370 | zmin=min(zmin,frac_impa(i,k)) |
---|
| 371 | enddo |
---|
| 372 | enddo |
---|
| 373 | Print*,'facteur d impaction ',zmin,zmax |
---|
| 374 | |
---|
[541] | 375 | ENDIF |
---|
[524] | 376 | |
---|
[541] | 377 | c reinitialisation des champs cumules |
---|
| 378 | go to 768 |
---|
| 379 | if (mod(iadvtr,istphy).eq.1) then |
---|
| 380 | do k=1,klev |
---|
| 381 | do i=1,klon |
---|
| 382 | mfu(i,k)=0. |
---|
| 383 | mfd(i,k)=0. |
---|
| 384 | en_u(i,k)=0. |
---|
| 385 | de_u(i,k)=0. |
---|
| 386 | en_d(i,k)=0. |
---|
| 387 | de_d(i,k)=0. |
---|
| 388 | coefh(i,k)=0. |
---|
| 389 | t(i,k)=0. |
---|
| 390 | fm_therm(i,k)=0. |
---|
| 391 | entr_therm(i,k)=0. |
---|
| 392 | enddo |
---|
| 393 | enddo |
---|
| 394 | do i=1,klon |
---|
| 395 | pyv1(i)=0. |
---|
| 396 | pyu1(i)=0. |
---|
| 397 | end do |
---|
| 398 | do k=1,nbsrf |
---|
| 399 | do i=1,klon |
---|
| 400 | pftsol(i,k)=0. |
---|
| 401 | ppsrf(i,k)=0. |
---|
| 402 | enddo |
---|
| 403 | enddo |
---|
[524] | 404 | |
---|
[541] | 405 | dtcum=0. |
---|
| 406 | endif |
---|
| 407 | |
---|
| 408 | do k=1,klev |
---|
| 409 | do i=1,klon |
---|
| 410 | mfu(i,k)=mfu(i,k)+pmfu(i,k)*pdtphys |
---|
| 411 | mfd(i,k)=mfd(i,k)+pmfd(i,k)*pdtphys |
---|
| 412 | en_u(i,k)=en_u(i,k)+pen_u(i,k)*pdtphys |
---|
| 413 | de_u(i,k)=de_u(i,k)+pde_u(i,k)*pdtphys |
---|
| 414 | en_d(i,k)=en_d(i,k)+pen_d(i,k)*pdtphys |
---|
| 415 | de_d(i,k)=de_d(i,k)+pde_d(i,k)*pdtphys |
---|
[1067] | 416 | coefh(i,k)=coefh(i,k)+pcoefh_buf(i,k)*pdtphys |
---|
[541] | 417 | t(i,k)=t(i,k)+pt(i,k)*pdtphys |
---|
| 418 | fm_therm(i,k)=fm_therm(i,k)+pfm_therm(i,k)*pdtphys |
---|
| 419 | entr_therm(i,k)=entr_therm(i,k)+pentr_therm(i,k)*pdtphys |
---|
| 420 | enddo |
---|
| 421 | enddo |
---|
| 422 | do i=1,klon |
---|
| 423 | pyv1(i)=pyv1(i)+yv1(i)*pdtphys |
---|
| 424 | pyu1(i)=pyu1(i)+yu1(i)*pdtphys |
---|
| 425 | end do |
---|
| 426 | do k=1,nbsrf |
---|
| 427 | do i=1,klon |
---|
| 428 | pftsol(i,k)=pftsol(i,k)+ftsol(i,k)*pdtphys |
---|
| 429 | ppsrf(i,k)=ppsrf(i,k)+pctsrf(i,k)*pdtphys |
---|
| 430 | enddo |
---|
| 431 | enddo |
---|
| 432 | |
---|
| 433 | dtcum=dtcum+pdtphys |
---|
| 434 | 768 continue |
---|
| 435 | |
---|
[524] | 436 | RETURN |
---|
| 437 | END |
---|