Changes in src/timemanager.f90 [d1a8707:18adf60] in flexpart.git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/timemanager.f90
rd1a8707 r18adf60 105 105 ! integer :: ksp 106 106 integer :: loutnext,loutstart,loutend 107 integer :: ix,jy,ldeltat,itage,nage ,idummy107 integer :: ix,jy,ldeltat,itage,nage 108 108 integer :: i_nan=0,ii_nan,total_nan_intl=0 !added by mc to check instability in CBL scheme 109 real :: outnum,weight,prob _rec(maxspec),prob(maxspec),decfact,wetscav(maxspec)109 real :: outnum,weight,prob(maxspec),decfact 110 110 ! real :: uap(maxpart),ucp(maxpart),uzp(maxpart) 111 111 ! real :: us(maxpart),vs(maxpart),ws(maxpart) … … 114 114 real(dep_prec) :: drydeposit(maxspec),wetgridtotalunc,drygridtotalunc 115 115 real :: xold,yold,zold,xmassfract 116 real :: grfraction(3)117 116 real, parameter :: e_inv = 1.0/exp(1.0) 118 119 117 !double precision xm(maxspec,maxpointspec_act), 120 118 ! + xm_depw(maxspec,maxpointspec_act), … … 147 145 !CGZ-lifetime: set lifetime to 0 148 146 149 if (.not.usekernel) write(*,*) 'Not using the kernel'150 if (turboff) write(*,*) 'Turbulence switched off'151 152 147 write(*,46) float(itime)/3600,itime,numpart 153 148 … … 546 541 zold=ztra1(j) 547 542 548 549 ! RECEPTOR: dry/wet depovel550 !****************************551 ! Before the particle is moved552 ! the calculation of the scavenged mass shall only be done once after release553 ! xscav_frac1 was initialised with a negative value554 555 if (DRYBKDEP) then556 do ks=1,nspec557 if ((xscav_frac1(j,ks).lt.0)) then558 call get_vdep_prob(itime,xtra1(j),ytra1(j),ztra1(j),prob_rec)559 if (DRYDEPSPEC(ks)) then ! dry deposition560 xscav_frac1(j,ks)=prob_rec(ks)561 else562 xmass1(j,ks)=0.563 xscav_frac1(j,ks)=0.564 endif565 endif566 enddo567 endif568 569 if (WETBKDEP) then570 do ks=1,nspec571 if ((xscav_frac1(j,ks).lt.0)) then572 call get_wetscav(itime,lsynctime,loutnext,j,ks,grfraction,idummy,idummy,wetscav)573 if (wetscav(ks).gt.0) then574 xscav_frac1(j,ks)=wetscav(ks)* &575 (zpoint2(npoint(j))-zpoint1(npoint(j)))*grfraction(1)576 else577 xmass1(j,ks)=0.578 xscav_frac1(j,ks)=0.579 endif580 endif581 enddo582 endif583 584 543 ! Integrate Lagevin equation for lsynctime seconds 585 544 !************************************************* 586 545 587 if (verbosity.gt.0) then588 if (j.eq.1) then589 write (*,*) 'timemanager> call advance'590 endif591 endif592 593 546 call advance(itime,npoint(j),idt(j),uap(j),ucp(j),uzp(j), & 594 547 us(j),vs(j),ws(j),nstop,xtra1(j),ytra1(j),ztra1(j),prob, & 595 548 cbt(j)) 596 ! write (*,*) 'advance: ',prob(1),xmass1(j,1),ztra1(j)597 549 598 550 ! Calculate the gross fluxes across layer interfaces
Note: See TracChangeset
for help on using the changeset viewer.