Changeset 92a74b2 in flexpart.git for src


Ignore:
Timestamp:
Nov 21, 2016, 10:05:39 AM (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:
3d6060e
Parents:
7062fab
Message:

get_vdep_prob instead of advance

Location:
src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/conccalc.f90

    rdeaac29 r92a74b2  
    207207        endif
    208208
    209       else                                 ! attribution via uniform kernel
     209      else                                 ! attribution via uniform kernel 
    210210
    211211        ddx=xl-real(ix)                   ! distance to left cell border
     
    326326        if ((itage.lt.10800).or.(xl.lt.0.5).or.(yl.lt.0.5).or. &
    327327             (xl.gt.real(numxgridn-1)-0.5).or. &
    328              (yl.gt.real(numygridn-1)-0.5)) then             ! no kernel, direct attribution to grid cell
     328             (yl.gt.real(numygridn-1)-0.5).or.(usekernel.eq.0)) then             ! no kernel, direct attribution to grid cell
    329329          if ((ix.ge.0).and.(jy.ge.0).and.(ix.le.numxgridn-1).and. &
    330330               (jy.le.numygridn-1)) then
  • src/get_vdep_prob.f90

    r7062fab r92a74b2  
    2020!**********************************************************************
    2121
    22 subroutine advance_rec(itime,xt,yt,zt,prob)
     22subroutine get_vdep_prob(itime,xt,yt,zt,prob)
    2323  !                    i     i  i  i  o
    2424  !*****************************************************************************
    2525  !                                                                            *
    26   !  Calculation of turbulent particle trajectories utilizing a                *
    27   !  zero-acceleration scheme, which is corrected by a numerically more        *
    28   !  accurate Petterssen scheme whenever possible.                             *
     26  !  Calculation of the probability for dyr deposition                         *
    2927  !                                                                            *
    30   !  Particle positions are read in, incremented, and returned to the calling  *
    31   !  program.                                                                  *
    32   !                                                                            *
    33   !  In different regions of the atmosphere (PBL vs. free troposphere),        *
    34   !  different parameters are needed for advection, parameterizing turbulent   *
    35   !  velocities, etc. For efficiency, different interpolation routines have    *
    36   !  been written for these different cases, with the disadvantage that there  *
    37   !  exist several routines doing almost the same. They all share the          *
    38   !  included file 'interpol_mod'. The following                               *
    39   !  interpolation routines are used:                                          *
    40   !                                                                            *
    41   !  interpol_all(_nests)     interpolates everything (called inside the PBL)  *
    42   !  interpol_misslev(_nests) if a particle moves vertically in the PBL,       *
    43   !                           additional parameters are interpolated if it     *
    44   !                           crosses a model level                            *
    45   !  interpol_wind(_nests)    interpolates the wind and determines the         *
    46   !                           standard deviation of the wind (called outside   *
    47   !                           PBL) also interpolates potential vorticity       *
    48   !  interpol_wind_short(_nests) only interpolates the wind (needed for the    *
    49   !                           Petterssen scheme)                               *
    50   !  interpol_vdep(_nests)    interpolates deposition velocities               *
    51   !                                                                            *
    52   !                                                                            *
    53   !     Author: A. Stohl                                                       *
    54   !                                                                            *
    55   !     16 December 1997                                                       *
    56   !                                                                            *
    57   !  Changes:                                                                  *
    58   !                                                                            *
    59   !  8 April 2000: Deep convection parameterization                            *
    60   !                                                                            *
    61   !  May 2002: Petterssen scheme introduced                                    *
     28  !  Particle positions are read in - prob returned                            *
    6229  !                                                                            *
    6330  !*****************************************************************************
     
    175142
    176143
    177 end subroutine advance_rec
     144end subroutine get_vdep_prob
    178145
  • src/get_wetscav.f90

    rc9cf570 r92a74b2  
    2020!**********************************************************************
    2121
    22 subroutine get_wetscav(itime,ltsample,loutnext,jpart,grfraction,inc_count,blc_count,wetscav)
     22subroutine get_wetscav(itime,ltsample,loutnext,jpart,ks,grfraction,inc_count,blc_count,wetscav)
    2323!                          i      i        i     i     o           o
    2424!*****************************************************************************
     
    218218!**********************************************************
    219219
    220     do ks=1,nspec      ! loop over species
    221220      wetdeposit(ks)=0.
    222221      wetscav=0.   
     
    338337      endif !incloud
    339338
    340     end do ! loop over species
    34133920  continue
    342340
  • src/makefile

    r9669e1e r92a74b2  
    152152erf.o                   readavailable.o \
    153153ew.o                    readreleases.o  \
    154 readdepo.o              advance_rec.o   \
     154readdepo.o              get_vdep_prob.o   \
     155get_wetscav.o   \
    155156psim.o                  outgrid_init.o  \
    156157outgrid_init_nest.o     \
     
    271272
    272273## DEPENDENCIES
    273 advance_rec.o: cmapf_mod.o com_mod.o hanna_mod.o interpol_mod.o par_mod.o \
     274get_vdep_prob.o: cmapf_mod.o com_mod.o hanna_mod.o interpol_mod.o par_mod.o \
    274275        point_mod.o random_mod.o
    275276advance.o: cmapf_mod.o com_mod.o hanna_mod.o interpol_mod.o par_mod.o \
     
    426427verttransform_gfs.o: cmapf_mod.o com_mod.o par_mod.o
    427428verttransform_nests.o: com_mod.o par_mod.o
     429get_wetscav.o: com_mod.o par_mod.o point_mod.o
    428430wetdepo.o: com_mod.o par_mod.o point_mod.o
    429431wetdepokernel.o: com_mod.o par_mod.o unc_mod.o
  • src/timemanager.f90

    rc9cf570 r92a74b2  
    567567       do ks=1,nspec
    568568         if  ((xscav_frac1(j,ks).lt.0)) then
    569             call get_wetscav(itime,lsynctime,loutnext,j,grfraction,idummy,idummy,wetscav)
     569            call get_wetscav(itime,lsynctime,loutnext,j,ks,grfraction,idummy,idummy,wetscav)
    570570            if (wetscav(ks).gt.0) then
    571                 xscav_frac1(j,ks)=wetscav(ks)*(zpoint2(j)-zpoint1(j))
     571                xscav_frac1(j,ks)=wetscav(ks)*(zpoint2(npoint(j))-zpoint1(npoint(j)))
    572572            else
    573573                xmass1(j,ks)=0.
  • src/wetdepo.f90

    rc9cf570 r92a74b2  
    103103 33  continue
    104104
     105    do ks=1,nspec      ! loop over species
    105106
    106107!**************************************************
    107108! CALCULATE DEPOSITION
    108109!**************************************************
    109       call get_wetscav(itime,ltsample,loutnext,jpart,grfraction,inc_count,blc_count,wetscav)
     110      call get_wetscav(itime,ltsample,loutnext,jpart,ks,grfraction,inc_count,blc_count,wetscav)
    110111
    111112      if (wetscav.gt.0.) then
     
    136137      endif
    137138
     139    end do ! loop over species
     140
    138141! Sabine Eckhardt, June 2008 create deposition runs only for forward runs
    139142! Add the wet deposition to accumulated amount on output grid and nested output grid
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG