Changeset 462f74b in flexpart.git for src/wetdepo.f90


Ignore:
Timestamp:
Jul 12, 2016, 11:02:42 AM (8 years ago)
Author:
Sabine Eckhardt <sabine@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
Children:
842074e
Parents:
f28aa0a
Message:

first version of the backward scavenging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/wetdepo.f90

    r05cf28d r462f74b  
    174174
    175175!  If total precipitation is less than 0.01 mm/h - no scavenging occurs
    176     if ((lsp.lt.0.01).and.(convp.lt.0.01)) goto 20
     176!  sec this is just valid if release is over a point
     177    if ((lsp.lt.0.01).and.(convp.lt.0.01)) then
     178          if (SCAVDEP) then
     179             do ks=1,nspec
     180                if (xscav_frac1(jpart,ks).lt.0) then ! first timestep no scavenging
     181                   xmass1(jpart,ks)=0.
     182                   xscav_frac1(jpart,ks)=0.
     183!                  write (*,*) 'paricle removed - no scavenging: ',jpart,ks
     184                endif
     185             end do
     186          endif
     187          goto 20
     188    endif
     189
    177190
    178191! get the level were the actual particle is in
     
    414427      endif
    415428
     429      if (SCAVDEP) then
     430! the calculation of the scavenged mass shall only be done once after release
     431! xscav_frac1 was initialised with a negative value
     432          if (xscav_frac1(jpart,ks).lt.0) then
     433             if (wetdeposit(ks).eq.0) then
     434! terminate particle
     435                xmass1(jpart,ks)=0.
     436                xscav_frac1(jpart,ks)=0.
     437             else
     438                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             endif
     442          endif
     443      endif
     444
    416445
    417446    end do !all species
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG