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

Last change on this file since 4553 was 4553, checked in by eckhard, 4 years ago

Fixed domain extend check, readablity and documentation improvements

  • Property svn:keywords set to Id
File size: 7.5 KB
RevLine 
[3447]1!> @file src/inifor_defs.f90
[2696]2!------------------------------------------------------------------------------!
[2718]3! This file is part of the PALM model system.
[2696]4!
[2718]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
[2696]8! version.
9!
[2718]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.
[2696]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!
[4481]17! Copyright 2017-2020 Leibniz Universitaet Hannover
18! Copyright 2017-2020 Deutscher Wetterdienst Offenbach
[2696]19!------------------------------------------------------------------------------!
20!
21! Current revisions:
22! -----------------
[3183]23!
24!
25! Former revisions:
26! -----------------
27! $Id: inifor_defs.f90 4553 2020-06-03 16:34:15Z eckhard $
[4538]28! Bumped version number
29!
30!
[4553]31! 4538 2020-05-18 13:45:35Z eckhard
32! Bumped version number
33!
34!
[4538]35! 4523 2020-05-07 15:58:16Z eckhard
[4499]36! Updated copyright notice, bumped version number
37!
38!
39! 4481 2020-03-31 18:55:54Z maronga
[4019]40! Bumped version number
41!
42!
[4074]43! 4019 2019-06-06 14:00:35Z eckhard
44! Bumped version number
45!
46!
[4019]47! 3997 2019-05-23 12:35:57Z eckhard
[3997]48! Defined netCDF attribute names for PALM origin coordinates
49! Make netCDF variable names constants
50! Bumped version number
51!
52!
53! 3867 2019-04-05 16:15:55Z eckhard
[3866]54! Added parameter for INIFOR's log file name
55! Use PALM's working precision
56!
57!
58! 3801 2019-03-15 17:14:25Z eckhard
[3801]59! Defined netCDF variable names for COSMO grid
60! Bumped version number
61!
62!
63! 3779 2019-03-05 11:13:35Z eckhard
[3779]64! Updated version number to 1.4.7, updated copyright note
65!
66!
67! 3764 2019-02-26 13:42:09Z eckhard
[3678]68! Bumped version number
69!
70!
[3764]71! 3716 2019-02-05 17:02:38Z eckhard
72! Bumped version number
73!
74!
[3678]75! 3618 2018-12-10 13:25:22Z eckhard
[3618]76! Prefixed module with inifor_
77!
78!
79! 3613 2018-12-07 18:20:37Z eckhard
[3613]80! Bumped version number
81!
82!
83! 3557 2018-11-22 16:01:22Z eckhard
[3557]84! Updated documentation
85!
86!
87! 3537 2018-11-20 10:53:14Z eckhard
[3537]88! Bumped version number
89!
90!
91! 3534 2018-11-19 15:35:16Z raasch
[3534]92! NEW_LINE intrinsic replaced by ACHAR to avoid compile time error
93!
94! 3456 2018-10-30 14:29:54Z eckhard
[3456]95! Bumped version number
96!
97!
98! 3447 2018-10-29 15:52:54Z eckhard
[3447]99! Renamed source files for compatibilty with PALM build system
100!
101!
102! 3395 2018-10-22 17:32:49Z eckhard
[3395]103! New parameters for computation of geostrophic winds
104! Bumped INIFOR version number
105!
106!
107! 3183 2018-07-27 14:25:55Z suehring
[3182]108! Updated defaults for soil extrapolation steps and nudging time-scale
109! Improved handling of the start date string
110! Added gas constant for water vapor
111! Bumped INIFOR version number
[2696]112!
113!
[3183]114! 3182 2018-07-27 13:36:03Z suehring
[2696]115! Initial revision
116!
117!
118!
119! Authors:
120! --------
[3557]121!> @author Eckhard Kadasch (Deutscher Wetterdienst, Offenbach)
[2696]122!
123! Description:
124! ------------
125!> The defs module provides global constants used in INIFOR.
126!------------------------------------------------------------------------------!
[3618]127 MODULE inifor_defs
[2696]128 
[3867]129 !USE kinds,                                                                    &
130 !    ONLY :  wp, iwp
[3866]131
[2696]132 IMPLICIT NONE
[3557]133
134!
135!-- Parameters for type definitions
[3867]136 INTEGER, PARAMETER  ::  iwp = 8
137 INTEGER, PARAMETER  ::  wp = 8
[2696]138 INTEGER, PARAMETER  ::  PATH  = 140 !< length of file path strings
139 INTEGER, PARAMETER  ::  LNAME = 150 !< length of long name strings
140 INTEGER, PARAMETER  ::  SNAME = 40  !< length of short name strings
141 INTEGER, PARAMETER  ::  DATE  = 10  !< length of date strings
142
[3557]143!
144!-- Trigonomentry
[3866]145 REAL(wp), PARAMETER ::  PI = 3.14159265358979323846264338_wp !< Ratio of a circle's circumference to its diamter [-]
146 REAL(wp), PARAMETER ::  TO_RADIANS = PI / 180.0_wp           !< Conversion factor from degrees to radiant [-]
147 REAL(wp), PARAMETER ::  TO_DEGREES = 180.0_wp / PI           !< Conversion factor from radians to degrees [-]
[2696]148
[3557]149!
[3801]150!-- COSMO parameters
[4523]151 INTEGER(iwp), PARAMETER  ::  WATER_ID = 9                !< Integer corresponding to the water soil type in COSMO-DE [-]
[3866]152 REAL(wp), PARAMETER ::  EARTH_RADIUS = 6371229.0_wp !< Earth radius used in COSMO-DE [m]
153 REAL(wp), PARAMETER ::  P_SL = 1e5_wp               !< Reference pressure for computation of COSMO-DE's basic state pressure [Pa]
154 REAL(wp), PARAMETER ::  T_SL = 288.15_wp            !< Reference temperature for computation of COSMO-DE's basic state pressure [K]
155 REAL(wp), PARAMETER ::  BETA = 42.0_wp              !< logarithmic lapse rate, dT / d ln(p), for computation of COSMO-DE's basic
[3557]156                                                     !< state pressure [K]
[3866]157 REAL(wp), PARAMETER ::  RD   = 287.05_wp            !< specific gas constant of dry air, used in computation of COSMO-DE's basic
[3557]158                                                     !< state [J/kg/K]
[3866]159 REAL(wp), PARAMETER ::  RV   = 461.51_wp            !< specific gas constant of water vapor [J/kg/K]
160 REAL(wp), PARAMETER ::  G    = 9.80665_wp           !< acceleration of Earth's gravity, used in computation of COSMO-DE's basic
[3557]161                                                     !< state [m/s/s]
[3866]162 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],
[3557]163                                                     !< in [kg/m^3]
[3866]164 REAL(wp), PARAMETER ::  HECTO = 100_wp              !< unit conversion factor from hPa to Pa
[2696]165
[3557]166!
167!-- PALM-4U parameters
[3866]168 REAL(wp), PARAMETER ::  OMEGA   = 7.29e-5_wp !< angular velocity of Earth's rotation [s^-1]
169 REAL(wp), PARAMETER ::  P_REF   = 1e5_wp     !< Reference pressure for potential temperature [Pa]
170 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]
171 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]
[2696]172
[3997]173!
174!-- PALM static driver attribute names (PIDS 1.9)
175CHARACTER(SNAME), PARAMETER ::  PIDS_ORIGIN_LON = 'origin_lon'
176CHARACTER(SNAME), PARAMETER ::  PIDS_ORIGIN_LAT = 'origin_lat'
177CHARACTER(SNAME), PARAMETER ::  PIDS_ORIGIN_Z   = 'origin_z'
178
[3801]179!
180!-- COSMO netCDF names
[3997]181CHARACTER(SNAME), PARAMETER ::  NC_DEPTH_NAME = 'depth_2'
182CHARACTER(SNAME), PARAMETER ::  NC_HHL_NAME = 'HHL'
183CHARACTER(SNAME), PARAMETER ::  NC_RLAT_NAME = 'rlat'
184CHARACTER(SNAME), PARAMETER ::  NC_RLON_NAME = 'rlon'
185CHARACTER(SNAME), PARAMETER ::  NC_ROTATED_POLE_NAME = 'rotated_pole'
186CHARACTER(SNAME), PARAMETER ::  NC_POLE_LATITUDE_NAME = 'grid_north_pole_latitude'
187CHARACTER(SNAME), PARAMETER ::  NC_POLE_LONGITUDE_NAME = 'grid_north_pole_longitude'
[3801]188
[3557]189!
190!-- INIFOR parameters
[4523]191 INTEGER(iwp), PARAMETER     ::  FILL_ITERATIONS = 5          !< Number of iterations for extrapolating soil data into COSMO-DE
[3557]192                                                              !< water cells [-]
[4523]193 INTEGER(iwp), PARAMETER     ::  FORCING_STEP = 1             !< Number of hours between forcing time steps [h]
[3866]194 REAL(wp), PARAMETER         ::  NUDGING_TAU = 21600.0_wp     !< Nudging relaxation time scale [s]
[4499]195 CHARACTER(LEN=*), PARAMETER ::  COPYRIGHT = 'Copyright 2017-2020 Leibniz Universitaet Hannover' // &
196    ACHAR( 10 ) // ' Copyright 2017-2020 Deutscher Wetterdienst Offenbach' !< Copyright notice
[3866]197 CHARACTER(LEN=*), PARAMETER ::  LOG_FILE_NAME = 'inifor.log' !< Name of INIFOR's log file
[4553]198 CHARACTER(LEN=*), PARAMETER ::  VERSION = '1.4.15'           !< INIFOR version number
[3866]199 
[3618]200 END MODULE inifor_defs
Note: See TracBrowser for help on using the repository browser.