source: palm/trunk/UTIL/inifor/src/inifor_defs.f90 @ 3955

Last change on this file since 3955 was 3867, checked in by eckhard, 6 years ago

Fix 'kinds.mod0' build issue

  • Property svn:keywords set to Id
File size: 6.7 KB
Line 
1!> @file src/inifor_defs.f90
2!------------------------------------------------------------------------------!
3! This file is part of the PALM model system.
4!
5! PALM is free software: you can redistribute it and/or modify it under the
6! terms of the GNU General Public License as published by the Free Software
7! Foundation, either version 3 of the License, or (at your option) any later
8! version.
9!
10! PALM is distributed in the hope that it will be useful, but WITHOUT ANY
11! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12! A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13!
14! You should have received a copy of the GNU General Public License along with
15! PALM. If not, see <http://www.gnu.org/licenses/>.
16!
17! Copyright 2017-2019 Leibniz Universitaet Hannover
18! Copyright 2017-2019 Deutscher Wetterdienst Offenbach
19!------------------------------------------------------------------------------!
20!
21! Current revisions:
22! -----------------
23!
24!
25! Former revisions:
26! -----------------
27! $Id: inifor_defs.f90 3867 2019-04-05 16:15:55Z maronga $
28! Added parameter for INIFOR's log file name
29! Use PALM's working precision
30!
31!
32! 3801 2019-03-15 17:14:25Z eckhard
33! Defined netCDF variable names for COSMO grid
34! Bumped version number
35!
36!
37! 3779 2019-03-05 11:13:35Z eckhard
38! Updated version number to 1.4.7, updated copyright note
39!
40!
41! 3764 2019-02-26 13:42:09Z eckhard
42! Bumped version number
43!
44!
45! 3716 2019-02-05 17:02:38Z eckhard
46! Bumped version number
47!
48!
49! 3618 2018-12-10 13:25:22Z eckhard
50! Prefixed module with inifor_
51!
52!
53! 3613 2018-12-07 18:20:37Z eckhard
54! Bumped version number
55!
56!
57! 3557 2018-11-22 16:01:22Z eckhard
58! Updated documentation
59!
60!
61! 3537 2018-11-20 10:53:14Z eckhard
62! Bumped version number
63!
64!
65! 3534 2018-11-19 15:35:16Z raasch
66! NEW_LINE intrinsic replaced by ACHAR to avoid compile time error
67!
68! 3456 2018-10-30 14:29:54Z eckhard
69! Bumped version number
70!
71!
72! 3447 2018-10-29 15:52:54Z eckhard
73! Renamed source files for compatibilty with PALM build system
74!
75!
76! 3395 2018-10-22 17:32:49Z eckhard
77! New parameters for computation of geostrophic winds
78! Bumped INIFOR version number
79!
80!
81! 3183 2018-07-27 14:25:55Z suehring
82! Updated defaults for soil extrapolation steps and nudging time-scale
83! Improved handling of the start date string
84! Added gas constant for water vapor
85! Bumped INIFOR version number
86!
87!
88! 3182 2018-07-27 13:36:03Z suehring
89! Initial revision
90!
91!
92!
93! Authors:
94! --------
95!> @author Eckhard Kadasch (Deutscher Wetterdienst, Offenbach)
96!
97! Description:
98! ------------
99!> The defs module provides global constants used in INIFOR.
100!------------------------------------------------------------------------------!
101 MODULE inifor_defs
102 
103 !USE kinds,                                                                    &
104 !    ONLY :  wp, iwp
105
106 IMPLICIT NONE
107
108!
109!-- Parameters for type definitions
110 INTEGER, PARAMETER  ::  iwp = 8
111 INTEGER, PARAMETER  ::  wp = 8
112 INTEGER, PARAMETER  ::  PATH  = 140 !< length of file path strings
113 INTEGER, PARAMETER  ::  LNAME = 150 !< length of long name strings
114 INTEGER, PARAMETER  ::  SNAME = 40  !< length of short name strings
115 INTEGER, PARAMETER  ::  DATE  = 10  !< length of date strings
116
117!
118!-- Trigonomentry
119 REAL(wp), PARAMETER ::  PI = 3.14159265358979323846264338_wp !< Ratio of a circle's circumference to its diamter [-]
120 REAL(wp), PARAMETER ::  TO_RADIANS = PI / 180.0_wp           !< Conversion factor from degrees to radiant [-]
121 REAL(wp), PARAMETER ::  TO_DEGREES = 180.0_wp / PI           !< Conversion factor from radians to degrees [-]
122
123!
124!-- COSMO parameters
125 INTEGER, PARAMETER  ::  WATER_ID = 9                !< Integer corresponding to the water soil type in COSMO-DE [-]
126 REAL(wp), PARAMETER ::  EARTH_RADIUS = 6371229.0_wp !< Earth radius used in COSMO-DE [m]
127 REAL(wp), PARAMETER ::  P_SL = 1e5_wp               !< Reference pressure for computation of COSMO-DE's basic state pressure [Pa]
128 REAL(wp), PARAMETER ::  T_SL = 288.15_wp            !< Reference temperature for computation of COSMO-DE's basic state pressure [K]
129 REAL(wp), PARAMETER ::  BETA = 42.0_wp              !< logarithmic lapse rate, dT / d ln(p), for computation of COSMO-DE's basic
130                                                     !< state pressure [K]
131 REAL(wp), PARAMETER ::  RD   = 287.05_wp            !< specific gas constant of dry air, used in computation of COSMO-DE's basic
132                                                     !< state [J/kg/K]
133 REAL(wp), PARAMETER ::  RV   = 461.51_wp            !< specific gas constant of water vapor [J/kg/K]
134 REAL(wp), PARAMETER ::  G    = 9.80665_wp           !< acceleration of Earth's gravity, used in computation of COSMO-DE's basic
135                                                     !< state [m/s/s]
136 REAL(wp), PARAMETER ::  RHO_L = 1e3_wp              !< density of liquid water, used to convert W_SO from [kg/m^2] to [m^3/m^3],
137                                                     !< in [kg/m^3]
138 REAL(wp), PARAMETER ::  HECTO = 100_wp              !< unit conversion factor from hPa to Pa
139
140!
141!-- PALM-4U parameters
142 REAL(wp), PARAMETER ::  OMEGA   = 7.29e-5_wp !< angular velocity of Earth's rotation [s^-1]
143 REAL(wp), PARAMETER ::  P_REF   = 1e5_wp     !< Reference pressure for potential temperature [Pa]
144 REAL(wp), PARAMETER ::  RD_PALM = 287.0_wp   !< specific gas constant of dry air, used in computation of PALM-4U's potential temperature [J/kg/K]
145 REAL(wp), PARAMETER ::  CP_PALM = 1005.0_wp  !< heat capacity of dry air at constant pressure, used in computation of PALM-4U's potential temperature [J/kg/K]
146
147!
148!-- COSMO netCDF names
149CHARACTER(SNAME) ::  NC_DEPTH_NAME = 'depth_2'
150CHARACTER(SNAME) ::  NC_HHL_NAME = 'HHL'
151CHARACTER(SNAME) ::  NC_RLAT_NAME = 'rlat'
152CHARACTER(SNAME) ::  NC_RLON_NAME = 'rlon'
153CHARACTER(SNAME) ::  NC_ROTATED_POLE_NAME = 'rotated_pole'
154CHARACTER(SNAME) ::  NC_POLE_LATITUDE_NAME = 'grid_north_pole_latitude'
155CHARACTER(SNAME) ::  NC_POLE_LONGITUDE_NAME = 'grid_north_pole_longitude'
156
157!
158!-- INIFOR parameters
159 INTEGER, PARAMETER          ::  FILL_ITERATIONS = 5          !< Number of iterations for extrapolating soil data into COSMO-DE
160                                                              !< water cells [-]
161 INTEGER, PARAMETER          ::  FORCING_STEP = 1             !< Number of hours between forcing time steps [h]
162 REAL(wp), PARAMETER         ::  NUDGING_TAU = 21600.0_wp     !< Nudging relaxation time scale [s]
163 CHARACTER(LEN=*), PARAMETER ::  COPYRIGHT = 'Copyright 2017-2019 Leibniz Universitaet Hannover' // &
164    ACHAR( 10 ) // ' Copyright 2017-2019 Deutscher Wetterdienst Offenbach' !< Copyright notice
165 CHARACTER(LEN=*), PARAMETER ::  LOG_FILE_NAME = 'inifor.log' !< Name of INIFOR's log file
166 CHARACTER(LEN=*), PARAMETER ::  VERSION = '1.4.9rc'          !< INIFOR version number
167 
168 END MODULE inifor_defs
Note: See TracBrowser for help on using the repository browser.