Changeset 54cbd6c in flexpart.git for src/releaseparticles.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/releaseparticles.f90
r462f74b r54cbd6c 57 57 real :: xaux,yaux,zaux,rfraction 58 58 real :: topo,rhoaux(2),r,t,rhoout,ddx,ddy,rddx,rddy,p1,p2,p3,p4 59 real :: rhosum(nspec)60 59 real :: dz1,dz2,dz,xtn,ytn,xlonav,timecorrect(maxspec),press,pressold 61 60 real :: presspart,average_timecorrect … … 87 86 minpart=1 88 87 do i=1,numpoint 89 do k=1,nspec90 rhosum(k)=091 end do92 88 if ((itime.ge.ireleasestart(i)).and. &! are we within release interval? 93 89 (itime.le.ireleaseend(i))) then … … 186 182 xmass1(ipart,k)=xmass(i,k)/real(npart(i)) & 187 183 *timecorrect(k)/average_timecorrect 188 if ( SCAVDEP) then ! if there is no scavenging in wetdepo it will be set to 0184 if (DRYBKDEP.or.WETBKDEP) then ! if there is no scavenging in wetdepo it will be set to 0 189 185 ! if ( henry(k).gt.0 .or. & 190 186 ! crain_aero(k).gt.0. .or. csnow_aero(k).gt.0. .or. & 191 187 ! ccn_aero(k).gt.0. .or. in_aero(k).gt.0. ) then 192 188 xscav_frac1(ipart,k)=-1. 193 ! write(*,*) '190: ',xscav_frac1(ipart,k),k,ipart,rhosum(k),rhoout,i194 ! xscav_frac1(ipart,k)=(-1.)/real(npart(i)) &195 ! *timecorrect(k)/average_timecorrect196 ! else197 ! xscav_frac1(ipart,k)=0198 ! endif199 189 endif 200 190 ! Assign certain properties to particle … … 389 379 do k=1,nspec 390 380 xmass1(ipart,k)=xmass1(ipart,k)*rhoout 391 if (SCAVDEP) then392 xscav_frac1(ipart,k)=xscav_frac1(ipart,k)393 !mctest xscav_frac1(ipart,k)=xscav_frac1(ipart,k)*rhoout394 rhosum(k)=rhosum(k)+rhoout395 ! write(*,*) '391: ',xscav_frac1(ipart,k),k,ipart,rhosum(k),rhoout,i396 endif397 381 end do 398 382 endif 399 400 383 401 384 numpart=max(numpart,ipart) … … 407 390 34 minpart=ipart+1 408 391 end do ! ipart=minpart,maxpart 409 if (SCAVDEP) then410 do ipart=minpart,maxpart411 do k=1,nspec412 if (xscav_frac1(ipart,k).lt.0) then413 !mctest xscav_frac1(ipart,k)=xscav_frac1(ipart,k)/rhosum(k)414 ! write(*,*) '409: ',xscav_frac1(ipart,k),k,ipart,rhosum(k),rhoout,i415 endif416 end do417 end do418 endif419 392 endif ! j=1,numrel 420 393 end do
Note: See TracChangeset
for help on using the changeset viewer.