Changeset 6ecb30a in flexpart.git for src/calcmatrix.f90


Ignore:
Timestamp:
Aug 17, 2017, 4:39:17 PM (7 years ago)
Author:
Espen Sollum ATMOS <eso@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
Children:
5b34509
Parents:
61e07ba
Message:

Merged changes from CTBTO project

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/calcmatrix.f90

    re200b7a r6ecb30a  
    2020!**********************************************************************
    2121
    22 subroutine calcmatrix(lconv,delt,cbmf)
     22subroutine calcmatrix(lconv,delt,cbmf,metdata_format)
    2323  !                        o    i    o
    2424  !*****************************************************************************
     
    3030  !  Petra Seibert, Bernd C. Krueger, 2000-2001                                *
    3131  !                                                                            *
     32  !*****************************************************************************
     33  ! Changes:                                                                   *
    3234  !  changed by C. Forster, November 2003 - February 2004                      *
    3335  !  array fmassfrac(nconvlevmax,nconvlevmax) represents                       *
    3436  !  the convective redistribution matrix for the particles                    *
    3537  !                                                                            *
     38  !   Unified ECMWF and GFS builds                                             *
     39  !   Marian Harustak, 12.5.2017                                               *
     40  !     - Merged calcmatrix and calcmatrix_gfs into one routine using if-then  *
     41  !       for meteo-type dependent code                                        *
     42  !*****************************************************************************
     43  !                                                                            *
    3644  !  lconv        indicates whether there is convection in this cell, or not   *
    3745  !  delt         time step for convection [s]                                 *
    3846  !  cbmf         cloud base mass flux                                         *
     47  !  metdata_format format of metdata (ecmwf/gfs)                              *
    3948  !                                                                            *
    4049  !*****************************************************************************
     
    4352  use com_mod
    4453  use conv_mod
     54  use class_gribfile
    4555
    4656  implicit none
    4757
    4858  real :: rlevmass,summe
     59  integer :: metdata_format
    4960
    5061  integer :: iflag, k, kk, kuvz
     
    7788  do kuvz = 2,nuvz
    7889    k = kuvz-1
     90    if (metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then
    7991    pconv(k) = (akz(kuvz) + bkz(kuvz)*psconv)
    8092    phconv(kuvz) = (akm(kuvz) + bkm(kuvz)*psconv)
     93    else
     94      phconv(kuvz) =  0.5*(pconv(kuvz)+pconv(k))
     95    endif
    8196    dpr(k) = phconv(k) - phconv(kuvz)
    8297    qsconv(k) = f_qvsat( pconv(k), tconv(k) )
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG