source: trunk/WRF.COMMON/WRFV3/frame/module_driver_constants.F @ 3094

Last change on this file since 3094 was 2761, checked in by aslmd, 2 years ago

Applied planetary adaptation changes to WRFV3. job done previously by LMD_LES_MARS_install. Moved Registry.EM.newphys to put it simply in Registry.EM

File size: 3.7 KB
Line 
1!WRF:DRIVER_LAYER:CONSTANTS
2!
3!  This MODULE contains all of the constants used in the model.  These
4!  are separated by uage within the code.
5
6MODULE module_driver_constants
7
8   !  0. The following tells the rest of the model what data ordering we are
9   !     using
10
11   INTEGER , PARAMETER :: DATA_ORDER_XYZ = 1
12   INTEGER , PARAMETER :: DATA_ORDER_YXZ = 2
13   INTEGER , PARAMETER :: DATA_ORDER_ZXY = 3
14   INTEGER , PARAMETER :: DATA_ORDER_ZYX = 4
15   INTEGER , PARAMETER :: DATA_ORDER_XZY = 5
16   INTEGER , PARAMETER :: DATA_ORDER_YZX = 6
17   INTEGER , PARAMETER :: DATA_ORDER_XY = DATA_ORDER_XYZ
18   INTEGER , PARAMETER :: DATA_ORDER_YX = DATA_ORDER_YXZ
19
20
21#include <model_data_order.inc>
22
23   !  1. Following are constants for use in defining maximal values for array
24   !     definitions. 
25   !
26
27   !  The maximum number of levels in the model is how deeply the domains may
28   !  be nested.
29
30   INTEGER , PARAMETER :: max_levels      =  20
31
32   !  The maximum number of nests that can depend on a single parent and other way round
33
34   INTEGER , PARAMETER :: max_nests        =  20
35
36   !  The maximum number of parents that a nest can have (simplified assumption -> one only)
37
38   INTEGER , PARAMETER :: max_parents      =  1
39
40   !  The maximum number of domains is how many grids the model will be running.
41
42   INTEGER , PARAMETER :: max_domains     =   ( MAX_DOMAINS_F - 1 ) / 2 + 1
43
44   !  The maximum number of nest move specifications allowed in a namelist
45
46   INTEGER , PARAMETER :: max_moves       =   50
47
48   !  The maximum number of eta levels
49
50   INTEGER , PARAMETER :: max_eta         =   501
51
52   !  The maximum number of outer iterations (for DA minimisation)
53
54   INTEGER , PARAMETER :: max_outer_iterations = 10
55
56   !  The maximum number of instruments (for radiance DA)
57
58   INTEGER , PARAMETER :: max_instruments =   30
59
60   !  2. Following related to driver leve data structures for DM_PARALLEL communications
61
62#ifdef DM_PARALLEL
63   INTEGER , PARAMETER :: max_comms       =   1024
64#else
65   INTEGER , PARAMETER :: max_comms       =   1
66#endif
67
68   !  3. Following is information related to the file I/O.
69
70   !  These are the bounds of the available FORTRAN logical unit numbers for the file I/O.
71   !  Only logical unti numbers within these bounds will be chosen for I/O unit numbers.
72
73   INTEGER , PARAMETER :: min_file_unit = 10
74   INTEGER , PARAMETER :: max_file_unit = 99
75
76   !  4. Unfortunately, the following definition is needed here (rather
77   !     than the more logical place in share/module_model_constants.F)
78   !     for the namelist reads in frame/module_configure.F, and for some
79   !     conversions in share/set_timekeeping.F
80   !     Actually, using it here will mean that we don't need to set it
81   !     in share/module_model_constants.F, since this file will be
82   !     included (USEd) in:
83   !        frame/module_configure.F
84   !     which will be USEd in:
85   !        share/module_bc.F
86   !     which will be USEd in:
87   !        phys/module_radiation_driver.F
88   !     which is the other important place for it to be, and where
89   !     it is passed as a subroutine parameter to any physics subroutine.
90   !
91   !     P2SI is the number of SI seconds in an planetary solar day
92   !     divided by the number of SI seconds in an earth solar day
93!#if defined MARS
94!   !     For Mars, P2SI = 88775.2/86400.
95!   REAL , PARAMETER :: P2SI = 1.0274907
96!#elif defined TITAN
97!   !     For Titan, P2SI = 1378080.0/86400.
98!   REAL , PARAMETER :: P2SI = 15.95
99!#else
100   !     Default for Earth
101   REAL , PARAMETER :: P2SI = 1.0
102!!!!MARS
103!   REAL , PARAMETER :: P2SI = 1.0274907
104!#endif
105 CONTAINS
106   SUBROUTINE init_module_driver_constants
107   END SUBROUTINE init_module_driver_constants
108 END MODULE module_driver_constants
Note: See TracBrowser for help on using the repository browser.