Changes in src/releaseparticles.f90 [8a65cb0:75a4ded] in flexpart.git


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/releaseparticles.f90

    r8a65cb0 r75a4ded  
    176176  ! scaled. Adjust the mass per particle by the species-dependent time correction factor
    177177  ! divided by the species-average one
     178  ! for the scavenging calculation the mass needs to be multiplied with rho of the particle layer and
     179  ! divided by the sum of rho of all particles.
    178180  !*****************************************************************************
    179181            do k=1,nspec
    180182               xmass1(ipart,k)=xmass(i,k)/real(npart(i)) &
    181183                    *timecorrect(k)/average_timecorrect
    182   !            write (*,*) 'xmass1: ',xmass1(ipart,k),ipart,k
     184              if (DRYBKDEP.or.WETBKDEP) then ! if there is no scavenging in wetdepo it will be set to 0
     185!              if ( henry(k).gt.0 .or. &
     186!                   crain_aero(k).gt.0. .or. csnow_aero(k).gt.0. .or. &
     187!                   ccn_aero(k).gt.0. .or. in_aero(k).gt.0. )  then
     188                xscav_frac1(ipart,k)=-1.
     189               endif
    183190  ! Assign certain properties to particle
    184191  !**************************************
     
    202209
    203210            ztra1(ipart)=zpoint1(i)+ran1(idummy)*zaux
    204 
    205211  ! Interpolation of topography and density
    206212  !****************************************
     
    330336  !Af ind_rel is defined in readcommand.f
    331337
    332             if (ind_rel .eq. 1) then
     338            if ((ind_rel .eq. 1).or.(ind_rel .eq. 3).or.(ind_rel .eq. 4)) then
    333339
    334340  ! Interpolate the air density
     
    375381            endif
    376382
    377 
    378383            numpart=max(numpart,ipart)
    379384            goto 34      ! Storage space has been found, stop searching
    380385          endif
    381         end do
     386        end do  ! i=1:numpoint
    382387        if (ipart.gt.maxpart) goto 996
    383388
    38438934      minpart=ipart+1
    385       end do
    386       endif
     390      end do ! ipart=minpart,maxpart
     391      endif ! j=1,numrel
    387392  end do
    388393
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG