Changeset c9cf570 in flexpart.git for src/timemanager.f90
- Timestamp:
- Nov 18, 2016, 11:29:23 AM (7 years ago)
- Branches:
- master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
- Children:
- 7062fab
- Parents:
- deaac29
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/timemanager.f90
rdeaac29 rc9cf570 105 105 ! integer :: ksp 106 106 integer :: loutnext,loutstart,loutend 107 integer :: ix,jy,ldeltat,itage,nage 107 integer :: ix,jy,ldeltat,itage,nage,idummy 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 109 real :: outnum,weight,prob_rec(maxspec),prob(maxspec),decfact,wetscav(maxspec) 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) 116 117 real, parameter :: e_inv = 1.0/exp(1.0) 117 118 … … 550 551 551 552 if (DRYBKDEP) then 552 do ks=1,nspec553 do ks=1,nspec 553 554 if ((xscav_frac1(j,ks).lt.0)) then 554 555 call advance_rec(itime,xtra1(j),ytra1(j),ztra1(j),prob_rec) 555 556 if (decay(ks).gt.0.) then ! radioactive decay557 decfact=exp(-real(abs(lsynctime))*decay(ks))558 else559 decfact=1.560 endif561 556 if (DRYDEPSPEC(ks)) then ! dry deposition 562 557 xscav_frac1(j,ks)=prob_rec(ks) … … 565 560 xscav_frac1(j,ks)=0. 566 561 endif 567 ! write (*,*) 'xscav: ',j,ks,xscav_frac1(j,ks)568 562 endif 569 enddo563 enddo 570 564 endif 571 565 572 ! if (WETBKDEP) then 573 ! firstdepocalc=.false. 574 ! do ks=1,nspec 575 ! if ((xscav_frac1(j,ks).lt.0) & 576 ! .and.firstdepocalc.eqv..false.) then 577 ! ! Backward wetdeposition and first timestep after release 578 ! call wetdepo(itime,lsynctime,loutnext,.true.) 579 ! firstdepocalc=.true. 580 ! endif 581 ! enddo 582 ! endif 566 if (WETBKDEP) then 567 do ks=1,nspec 568 if ((xscav_frac1(j,ks).lt.0)) then 569 call get_wetscav(itime,lsynctime,loutnext,j,grfraction,idummy,idummy,wetscav) 570 if (wetscav(ks).gt.0) then 571 xscav_frac1(j,ks)=wetscav(ks)*(zpoint2(j)-zpoint1(j)) 572 else 573 xmass1(j,ks)=0. 574 xscav_frac1(j,ks)=0. 575 endif 576 endif 577 enddo 578 endif 583 579 584 580 ! Integrate Lagevin equation for lsynctime seconds
Note: See TracChangeset
for help on using the changeset viewer.