Changeset 420423c in flexpart.git


Ignore:
Timestamp:
Jan 26, 2017, 3:42:38 PM (7 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:
88929bf
Parents:
7725d96
Message:

depovelocity calculation moved to before conccalc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/timemanager.f90

    r56a2e54 r420423c  
    311311  !   if (itime.eq.loutnext) then
    312312  !   do 247 ksp=1, nspec
    313   !   do 247 kp=1, maxpointspec_act
     313  !    247 kp=1, maxpointspec_act
    314314  !47         xm(ksp,kp)=0.
    315315
     
    355355      if (mod(itime-loutstart,loutsample).eq.0) then
    356356
     357   
     358    do j=1,numpart
     359  ! RECEPTOR: dry/wet depovel
     360  !****************************
     361  ! Before the particle is moved
     362  ! the calculation of the scavenged mass shall only be done once after release
     363  ! xscav_frac1 was initialised with a negative value
     364
     365!      write (*,*) 'out:',j,xtra1(j),ytra1(j),prob_rec(1),xscav_frac1(j,1)
     366      if  (DRYBKDEP) then
     367       do ks=1,nspec
     368         if  ((xscav_frac1(j,ks).lt.0)) then
     369            call get_vdep_prob(itime,xtra1(j),ytra1(j),ztra1(j),prob_rec)
     370            if (DRYDEPSPEC(ks)) then        ! dry deposition
     371!        write (*,*) 'j,..:',j,xtra1(j),ytra1(j),prob_rec(1),xscav_frac1(j,1)
     372               xscav_frac1(j,ks)=prob_rec(ks)
     373             else
     374                xmass1(j,ks)=0
     375                xscav_frac1(j,ks)=0.
     376             endif
     377         endif
     378        enddo
     379       endif
     380
     381       if (WETBKDEP) then
     382       do ks=1,nspec
     383         if  ((xscav_frac1(j,ks).lt.0)) then
     384            call get_wetscav(itime,lsynctime,loutnext,j,ks,grfraction,idummy,idummy,wetscav)
     385            if (wetscav(ks).gt.0) then
     386                xscav_frac1(j,ks)=wetscav(ks)* &
     387                       (zpoint2(npoint(j))-zpoint1(npoint(j)))*grfraction(1)
     388            else
     389                xmass1(j,ks)=0.
     390                xscav_frac1(j,ks)=0.
     391            endif
     392         endif
     393        enddo
     394       endif
     395
     396  enddo
     397
    357398  ! If we are exactly at the start or end of the concentration averaging interval,
    358399  ! give only half the weight to this sample
     
    543584        zold=ztra1(j)
    544585
    545    
    546   ! RECEPTOR: dry/wet depovel
    547   !****************************
    548   ! Before the particle is moved
    549   ! the calculation of the scavenged mass shall only be done once after release
    550   ! xscav_frac1 was initialised with a negative value
    551 
    552       if  (DRYBKDEP) then
    553        do ks=1,nspec
    554          if  ((xscav_frac1(j,ks).lt.0)) then
    555             call get_vdep_prob(itime,xtra1(j),ytra1(j),ztra1(j),prob_rec)
    556             if (DRYDEPSPEC(ks)) then        ! dry deposition
    557                xscav_frac1(j,ks)=prob_rec(ks)
    558              else
    559                 xmass1(j,ks)=0
    560                 xscav_frac1(j,ks)=0.
    561              endif
    562          endif
    563         enddo
    564        endif
    565 
    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,ks,grfraction,idummy,idummy,wetscav)
    570             if (wetscav(ks).gt.0) then
    571                 xscav_frac1(j,ks)=wetscav(ks)* &
    572                        (zpoint2(npoint(j))-zpoint1(npoint(j)))*grfraction(1)
    573             else
    574                 xmass1(j,ks)=0.
    575                 xscav_frac1(j,ks)=0.
    576             endif
    577          endif
    578         enddo
    579        endif
    580586
    581587  ! Integrate Lagevin equation for lsynctime seconds
     
    588594        endif
    589595     
     596!        write (*,*) ' before advanced: ',j,prob(1),xmass1(j,1),ztra1(j)
    590597        call advance(itime,npoint(j),idt(j),uap(j),ucp(j),uzp(j), &
    591598             us(j),vs(j),ws(j),nstop,xtra1(j),ytra1(j),ztra1(j),prob, &
    592599             cbt(j))
    593 !        write (*,*) 'advance: ',prob(1),xmass1(j,1),ztra1(j)
     600        if (ztra1(j).lt.30) then
     601!        write (*,*) 'advanced: ',ztra1(j),j,xtra1(j),ytra1(j)
     602        endif
    594603
    595604  ! Calculate the gross fluxes across layer interfaces
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG