Changes in src/obukhov.f90 [6ecb30a:e200b7a] in flexpart.git


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/obukhov.f90

    r6ecb30a re200b7a  
    2020!**********************************************************************
    2121
    22 real function obukhov(ps,tsurf,tdsurf,tlev,ustar,hf,akm,bkm,plev,metdata_format)
     22real function obukhov(ps,tsurf,tdsurf,tlev,ustar,hf,akm,bkm)
    2323
    2424  !********************************************************************
     
    2727  !                       Date:   1994-06-27                          *
    2828  !                                                                   *
    29   !     This program calculates Obukhov scale height from surface     *
    30   !     meteorological data and sensible heat flux.                   *
     29  !  Update: A. Stohl, 2000-09-25, avoid division by zero by          *
     30  !  setting ustar to minimum value                                   *
    3131  !                                                                   *
    3232  !********************************************************************
    3333  !                                                                   *
    34   !  Update: A. Stohl, 2000-09-25, avoid division by zero by          *
    35   !  setting ustar to minimum value                                   *
    36   !  CHANGE: 17/11/2005 Caroline Forster NCEP GFS version             *
    37   !                                                                   *
    38   !   Unified ECMWF and GFS builds                                    *
    39   !   Marian Harustak, 12.5.2017                                      *
    40   !     - Merged obukhov and obukhov_gfs into one routine using       *
    41   !       if-then for meteo-type dependent code                       *
     34  !     This program calculates Obukhov scale height from surface     *
     35  !     meteorological data and sensible heat flux.                   *
    4236  !                                                                   *
    4337  !********************************************************************
     
    5347  !     akm     ECMWF vertical discretization parameter               *
    5448  !     bkm     ECMWF vertical discretization parameter               *
    55   !     plev                                                          *
    56   !     metdata_format format of metdata (ecmwf/gfs)                  *
    5749  !                                                                   *
    5850  !********************************************************************
    5951
    6052  use par_mod
    61   use class_gribfile
    6253
    6354  implicit none
    6455
    65   integer :: metdata_format
    6656  real :: akm(nwzmax),bkm(nwzmax)
    6757  real :: ps,tsurf,tdsurf,tlev,ustar,hf,e,ew,tv,rhoa,plev
     
    7262  tv=tsurf*(1.+0.378*e/ps)               ! virtual temperature
    7363  rhoa=ps/(r_air*tv)                      ! air density
    74   if (metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then
    7564  ak1=(akm(1)+akm(2))/2.
    7665  bk1=(bkm(1)+bkm(2))/2.
    7766  plev=ak1+bk1*ps                        ! Pressure level 1
    78   end if
    7967  theta=tlev*(100000./plev)**(r_air/cpa) ! potential temperature
    8068  if (ustar.le.0.) ustar=1.e-8
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG