Changeset c0884a8 in flexpart.git for src/richardson.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/richardson.f90

    r6ecb30a rc0884a8  
    2121
    2222subroutine richardson(psurf,ust,ttlev,qvlev,ulev,vlev,nuvz, &
    23        akz,bkz,hf,tt2,td2,h,wst,hmixplus,metdata_format)
     23       akz,bkz,hf,tt2,td2,h,wst,hmixplus,id_centre)
    2424  !                        i    i    i     i    i    i    i
    2525  ! i   i  i   i   i  o  o     o
     
    4141  !     Meteor. 81, 245-269.                                                  *
    4242  !                                                                           *
     43  !                                                                           *
     44  !  Petra Seibert, 2018-06-26: simplified version met data format detection  *
     45  !                                                                           *
    4346  !****************************************************************************
    4447  !                                                                           *
     
    5558  !       - Merged richardson and richardson_gfs into one routine using       *
    5659  !         if-then for meteo-type dependent code                             *
     60  !                                                                           *
     61  !                                                                           *
     62  !  Petra Seibert, 2018-06-26: simplified version met data format detection  *
    5763  !                                                                           *
    5864  !****************************************************************************
     
    6470  ! tv                         virtual temperature                            *
    6571  ! wst                        convective velocity scale                      *
    66   ! metdata_format             format of metdata (ecmwf/gfs)                  *
     72  ! id_centre                  format of metdata (ecmwf/gfs)                  *
    6773  !                                                                           *
    6874  ! Constants:                                                                *
     
    7278
    7379  use par_mod
    74   use class_gribfile
     80  use check_gribfile_mod
    7581
    7682  implicit none
    7783
    78   integer :: metdata_format
     84  integer :: id_centre
    7985  integer :: i,k,nuvz,iter,llev,loop_start
    8086  real :: tv,tvold,zref,z,zold,pint,pold,theta,thetaref,ri
     
    8995  iter=0
    9096
    91   if (metdata_format.eq.GRIBFILE_CENTRE_NCEP) then
     97  if (id_centre.eq.icg_id_ncep) then
    9298    ! NCEP version: find first model level above ground
    9399    !**************************************************
     
    123129  ! Integrate z up to one level above zt
    124130  !*************************************
    125   if (metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then
     131  if (id_centre.eq.icg_id_ecmwf) then
    126132    loop_start=2
    127133  else
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG