Changeset 54cbd6c in flexpart.git for src/wetdepo.f90
- Timestamp:
- Sep 30, 2016, 11:01:54 AM (8 years ago)
- Branches:
- master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
- Children:
- 9669e1e
- Parents:
- dced13c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/wetdepo.f90
r462f74b r54cbd6c 20 20 !********************************************************************** 21 21 22 subroutine wetdepo(itime,ltsample,loutnext )23 ! i i i 22 subroutine wetdepo(itime,ltsample,loutnext,forreceptor) 23 ! i i i i 24 24 !***************************************************************************** 25 25 ! * … … 30 30 ! This fraction is parameterized from total cloud cover and rates of large * 31 31 ! scale and convective precipitation. * 32 ! SEC: if forrecptor is true then the wetdeposition fraction is only applied * 33 ! on the xscav_frac and not on the xmass * 32 34 ! * 33 35 ! Author: A. Stohl * … … 92 94 integer :: blc_count, inc_count 93 95 real :: Si_dummy, wetscav_dummy 94 logical :: readclouds_this_nest 96 logical :: readclouds_this_nest,forreceptor 95 97 96 98 … … 172 174 memtime(1),memtime(2),interp_time,lsp,convp,cc) 173 175 endif 174 175 ! If total precipitation is less than 0.01 mm/h - no scavenging occurs176 ! sec this is just valid if release is over a point177 if ((lsp.lt.0.01).and.(convp.lt.0.01)) then178 if (SCAVDEP) then179 do ks=1,nspec180 if (xscav_frac1(jpart,ks).lt.0) then ! first timestep no scavenging181 xmass1(jpart,ks)=0.182 xscav_frac1(jpart,ks)=0.183 ! write (*,*) 'paricle removed - no scavenging: ',jpart,ks184 endif185 end do186 endif187 goto 20188 endif189 190 176 191 177 ! get the level were the actual particle is in … … 413 399 kp=1 414 400 endif 415 if (restmass .gt. smallnum) then 416 xmass1(jpart,ks)=restmass 401 if (forreceptor .eqv. .false.) then 402 if (restmass .gt. smallnum) then 403 xmass1(jpart,ks)=restmass 417 404 ! depostatistic 418 405 ! wetdepo_sum(ks,kp)=wetdepo_sum(ks,kp)+wetdeposit(ks) 419 406 ! depostatistic 420 else 421 xmass1(jpart,ks)=0. 422 endif 407 else 408 xmass1(jpart,ks)=0. 409 endif 410 else ! for the backward deposition calculation 411 if (wetdeposit(ks).gt.0) then ! deposition occured 412 xscav_frac1(jpart,ks)=xscav_frac1(jpart,ks)*(-1.)* & 413 wetdeposit(ks)/xmass1(jpart,ks) 414 ! write (*,*) 'paricle kept: ',jpart,ks,wetdeposit(ks),xscav_frac1(jpart,ks) 415 else 416 xmass1(jpart,ks)=0. 417 xscav_frac1(jpart,ks)=0. 418 endif 419 endif 423 420 ! Correct deposited mass to the last time step when radioactive decay of 424 421 ! gridded deposited mass was calculated … … 426 423 wetdeposit(ks)=wetdeposit(ks)*exp(abs(ldeltat)*decay(ks)) 427 424 endif 428 429 if (SCAVDEP) then430 ! the calculation of the scavenged mass shall only be done once after release431 ! xscav_frac1 was initialised with a negative value432 if (xscav_frac1(jpart,ks).lt.0) then433 if (wetdeposit(ks).eq.0) then434 ! terminate particle435 xmass1(jpart,ks)=0.436 xscav_frac1(jpart,ks)=0.437 else438 xscav_frac1(jpart,ks)=xscav_frac1(jpart,ks)*(-1.)* &439 wetdeposit(ks)/xmass1(jpart,ks)440 ! write (*,*) 'paricle kept: ',jpart,ks,wetdeposit(ks),xscav_frac1(jpart,ks)441 endif442 endif443 endif444 445 425 446 426 end do !all species
Note: See TracChangeset
for help on using the changeset viewer.