MODULE module_definitions ! INTEGER, PARAMETER :: r_k = KIND(1.d0) INTEGER, PARAMETER :: r_k = KIND(1.) REAL(r_k), PARAMETER :: zeroRK = 0. REAL(r_k), PARAMETER :: oneRK = 1. REAL(r_k), PARAMETER :: & epsilonRK = oneRK*10.**(INT(LOG10(EPSILON(oneRK)))) REAL(r_k), PARAMETER :: almostoneRK = 1.-epsilonRK REAL(r_k), PARAMETER :: twoRK = 2. !REAL(r_k), PARAMETER :: DegRad = 180.d0/DACOS(-1.) REAL(r_k), PARAMETER :: DegRad = 180./ACOS(-1.) CHARACTER(len=100) :: infomsg = 'INFORMATION -- information' // & ' -- INFORMATION -- information' CHARACTER(len=50) :: warnmsg = 'WARNING -- warning -- ' // & 'WARNING -- warning' CHARACTER(len=50) :: emsg = 'ERROR -- error -- ERROR -- error' ! Fill value at 64 bits !REAL(r_k) :: fillval64 = 1.d20 REAL(r_k) :: fillval64 = 1.e20 INTEGER :: fillvalI = -99999 CHARACTER(len=50) :: fname CHARACTER(len=256) :: msg ! Some all-purpose variables CHARACTER(len=1) :: Str1 CHARACTER(len=4) :: numSa, numSb CHARACTER(len=10) :: Str10 REAL(r_k) :: nullv = 1.e-7 !REAL(r_k) :: nullv = 1.d-15 ! Scientific constants !! ! K --> C temperature transformation REAL(r_k), PARAMETER :: SVPT0 = 273.15 ! August-Roche-Magnus approximation REAL(r_k), PARAMETER :: ARM1 = 6.1094 REAL(r_k), PARAMETER :: ARM2 = 17.625 REAL(r_k), PARAMETER :: ARM3 = 243.04 REAL(r_k), PARAMETER :: ZEPSEC = 1.0D-12 ! Low limit pressure for medium clouds [Pa] REAL(r_k), PARAMETER :: prmhc = 44000.d0 ! Low limit pressure for High clouds [Pa] REAL(r_k), PARAMETER :: prmlc = 68000.d0 REAL(r_k), PARAMETER :: grav = 9.81 ! gravity [ms-1] REAL(r_k), PARAMETER :: Cpmol = 29.07 ! Molar gas heat capacity at constant pressure [Jmol-1K-1] REAL(r_k), PARAMETER :: Cp_g = 1.0035 ! Gas heat capacity [Jg-1K-1] REAL(r_k), PARAMETER :: Rstar = 8.3144621 ! Universal molar air constant [JKgm2s-2K-1mol-1/JK-1mol-1] REAL(r_k), PARAMETER :: RCp = 0.286 ! R*Cp [-] REAL(r_k), PARAMETER :: p0ref = 100000 ! pressure reference [Pa] ! WRF gravity REAL(r_k), PARAMETER :: g = 9.81 ! Ratio between molecular weights of water and dry air REAL(r_k), PARAMETER :: mol_watdry = 0.622 ! Standard atmospheric lapse-rate [Km-1] REAL, PARAMETER :: gammav = 6.5e-3 ! WRF Gas constant for dry air [JK-1kg-1] REAL(r_k), PARAMETER :: r_d = 287. ! WRF Gas constant for wet air [JK-1kg-1] REAL(r_k), PARAMETER :: r_v = 461.6 ! WRF Dry air heat capacity [JK-1kg-1] REAL(r_k), PARAMETER :: cp = 7.*r_d/2. ! WRF p 1000 mb constant [Pa] REAL(r_k), PARAMETER :: p1000mb = 100000. ! WRF Latent Heat for water vapour [Jkg-1] REAL(r_k), PARAMETER :: XLV = 2.5E6 ! epislon r_d/r_v for Virtual temperature REAL(r_k), PARAMETER :: epsilonv = 0.622 ! pi REAL(r_k), PARAMETER :: piconst = 3.1415926535897932384626433 ! Karman constant REAL(r_k), PARAMETER :: karman = 0.4 ! Earth radius REAL(r_k), PARAMETER :: Earthradii = 6370.0e03 END MODULE module_definitions