module_driver_constants.F
References to this file elsewhere.
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
6 MODULE 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 CONTAINS
76 SUBROUTINE init_module_driver_constants
77 END SUBROUTINE init_module_driver_constants
78 END MODULE module_driver_constants