Changeset bb579a9 in flexpart.git for src/calcmatrix.f90


Ignore:
Timestamp:
Sep 13, 2017, 11:55:16 AM (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:
08a38b5
Parents:
aa8c34a (diff), dd6a4aa (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'ctbto' into dev

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/calcmatrix.f90

    re200b7a rd8eed02  
    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) )
     
    85100    do kk=1,nconvlev
    86101      fmassfrac(k,kk)=0.
    87     enddo
    88   enddo
     102    end do
     103  end do
    89104
    90105
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG