Changeset 54cbd6c in flexpart.git for src/releaseparticles.f90


Ignore:
Timestamp:
Sep 30, 2016, 11:01:54 AM (8 years ago)
Author:
Sabine <sabine.eckhardt@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
Children:
9669e1e
Parents:
dced13c
Message:

all f90 files for dry/wet backward mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/releaseparticles.f90

    r462f74b r54cbd6c  
    5757  real :: xaux,yaux,zaux,rfraction
    5858  real :: topo,rhoaux(2),r,t,rhoout,ddx,ddy,rddx,rddy,p1,p2,p3,p4
    59   real :: rhosum(nspec)
    6059  real :: dz1,dz2,dz,xtn,ytn,xlonav,timecorrect(maxspec),press,pressold
    6160  real :: presspart,average_timecorrect
     
    8786  minpart=1
    8887  do i=1,numpoint
    89     do k=1,nspec
    90       rhosum(k)=0
    91     end do
    9288    if ((itime.ge.ireleasestart(i)).and. &! are we within release interval?
    9389         (itime.le.ireleaseend(i))) then
     
    186182               xmass1(ipart,k)=xmass(i,k)/real(npart(i)) &
    187183                    *timecorrect(k)/average_timecorrect
    188               if (SCAVDEP) then ! if there is no scavenging in wetdepo it will be set to 0
     184              if (DRYBKDEP.or.WETBKDEP) then ! if there is no scavenging in wetdepo it will be set to 0
    189185!              if ( henry(k).gt.0 .or. &
    190186!                   crain_aero(k).gt.0. .or. csnow_aero(k).gt.0. .or. &
    191187!                   ccn_aero(k).gt.0. .or. in_aero(k).gt.0. )  then
    192188                xscav_frac1(ipart,k)=-1.
    193 !               write(*,*) '190: ',xscav_frac1(ipart,k),k,ipart,rhosum(k),rhoout,i
    194 !               xscav_frac1(ipart,k)=(-1.)/real(npart(i)) &
    195 !                    *timecorrect(k)/average_timecorrect
    196 !                  else
    197 !                     xscav_frac1(ipart,k)=0
    198 !                  endif   
    199189               endif
    200190  ! Assign certain properties to particle
     
    389379              do k=1,nspec
    390380                xmass1(ipart,k)=xmass1(ipart,k)*rhoout
    391                 if (SCAVDEP) then
    392                      xscav_frac1(ipart,k)=xscav_frac1(ipart,k)
    393 !mctest                     xscav_frac1(ipart,k)=xscav_frac1(ipart,k)*rhoout
    394                      rhosum(k)=rhosum(k)+rhoout
    395 !               write(*,*) '391: ',xscav_frac1(ipart,k),k,ipart,rhosum(k),rhoout,i
    396                 endif
    397381              end do
    398382            endif
    399 
    400383
    401384            numpart=max(numpart,ipart)
     
    40739034      minpart=ipart+1
    408391      end do ! ipart=minpart,maxpart
    409       if (SCAVDEP) then
    410          do ipart=minpart,maxpart
    411             do k=1,nspec
    412               if (xscav_frac1(ipart,k).lt.0) then
    413 !mctest                   xscav_frac1(ipart,k)=xscav_frac1(ipart,k)/rhosum(k)
    414 !                 write(*,*) '409: ',xscav_frac1(ipart,k),k,ipart,rhosum(k),rhoout,i
    415                endif   
    416             end do
    417          end do
    418       endif
    419392      endif ! j=1,numrel
    420393  end do
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG