Changes in src/obukhov.f90 [6ecb30a:e200b7a] in flexpart.git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/obukhov.f90
r6ecb30a re200b7a 20 20 !********************************************************************** 21 21 22 real function obukhov(ps,tsurf,tdsurf,tlev,ustar,hf,akm,bkm ,plev,metdata_format)22 real function obukhov(ps,tsurf,tdsurf,tlev,ustar,hf,akm,bkm) 23 23 24 24 !******************************************************************** … … 27 27 ! Date: 1994-06-27 * 28 28 ! * 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 * 31 31 ! * 32 32 !******************************************************************** 33 33 ! * 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. * 42 36 ! * 43 37 !******************************************************************** … … 53 47 ! akm ECMWF vertical discretization parameter * 54 48 ! bkm ECMWF vertical discretization parameter * 55 ! plev *56 ! metdata_format format of metdata (ecmwf/gfs) *57 49 ! * 58 50 !******************************************************************** 59 51 60 52 use par_mod 61 use class_gribfile62 53 63 54 implicit none 64 55 65 integer :: metdata_format66 56 real :: akm(nwzmax),bkm(nwzmax) 67 57 real :: ps,tsurf,tdsurf,tlev,ustar,hf,e,ew,tv,rhoa,plev … … 72 62 tv=tsurf*(1.+0.378*e/ps) ! virtual temperature 73 63 rhoa=ps/(r_air*tv) ! air density 74 if (metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then75 64 ak1=(akm(1)+akm(2))/2. 76 65 bk1=(bkm(1)+bkm(2))/2. 77 66 plev=ak1+bk1*ps ! Pressure level 1 78 end if79 67 theta=tlev*(100000./plev)**(r_air/cpa) ! potential temperature 80 68 if (ustar.le.0.) ustar=1.e-8
Note: See TracChangeset
for help on using the changeset viewer.