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


Ignore:
Timestamp:
Jul 20, 2018, 2:40:39 PM (6 years ago)
Author:
pesei <petra seibert at univie ac at>
Branches:
univie
Children:
7ca2ef4
Parents:
f251e57
Message:

replace CTBTO code for checking type of GRIB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/calcmatrix.f90

    rd8eed02 rc0884a8  
    2020!**********************************************************************
    2121
    22 subroutine calcmatrix(lconv,delt,cbmf,metdata_format)
     22subroutine calcmatrix(lconv,delt,cbmf,id_centre)
    2323  !                        o    i    o
    2424  !*****************************************************************************
     
    4040  !     - Merged calcmatrix and calcmatrix_gfs into one routine using if-then  *
    4141  !       for meteo-type dependent code                                        *
     42  !                                                                            *
     43  !  Petra Seibert, 2018-06-26: simplified version met data format detection   *
     44  !                                                                            *
    4245  !*****************************************************************************
    4346  !                                                                            *
     
    4548  !  delt         time step for convection [s]                                 *
    4649  !  cbmf         cloud base mass flux                                         *
    47   !  metdata_format format of metdata (ecmwf/gfs)                              *
     50  !  id_centre    format of metdata (ecmwf/gfs)                                *
    4851  !                                                                            *
    4952  !*****************************************************************************
     
    5255  use com_mod
    5356  use conv_mod
    54   use class_gribfile
     57  use check_gribfile_mod
    5558
    5659  implicit none
    5760
    5861  real :: rlevmass,summe
    59   integer :: metdata_format
     62  integer :: id_centre
    6063
    6164  integer :: iflag, k, kk, kuvz
     
    8891  do kuvz = 2,nuvz
    8992    k = kuvz-1
    90     if (metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then
     93    if (id_centre.eq.icg_id_ecmwf) then
    9194    pconv(k) = (akz(kuvz) + bkz(kuvz)*psconv)
    9295    phconv(kuvz) = (akm(kuvz) + bkm(kuvz)*psconv)
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG