1 | module radinc_h |
---|
2 | |
---|
3 | implicit none |
---|
4 | |
---|
5 | #include "dimensions.h" |
---|
6 | #include "bands.h" |
---|
7 | |
---|
8 | !======================================================================C |
---|
9 | ! |
---|
10 | ! RADINC.H RADiation INCludes |
---|
11 | ! |
---|
12 | ! Includes for the radiation code; RADIATION LAYERS, LEVELS, |
---|
13 | ! number of spectral intervals. . . |
---|
14 | ! |
---|
15 | !======================================================================C |
---|
16 | |
---|
17 | ! RADIATION parameters |
---|
18 | |
---|
19 | ! In radiation code, layer 1 corresponds to the stratosphere. Level |
---|
20 | ! 1 is the top of the stratosphere. The dummy layer is at the same |
---|
21 | ! temperature as the (vertically isothermal) stratosphere, and |
---|
22 | ! any time it is explicitly needed, the appropriate quantities will |
---|
23 | ! be dealt with (aka "top". . .) |
---|
24 | |
---|
25 | ! L_NLEVRAD corresponds to the surface - i.e., the GCM Level that |
---|
26 | ! is at the surface. PLEV(L_NLEVRAD) = P(J,I)+PTROP, |
---|
27 | ! PLEV(2) = PTROP, PLEV(1) = ptop |
---|
28 | |
---|
29 | ! L_NLAYRAD is the number of radiation code layers |
---|
30 | ! L_NLEVRAD is the number of radiation code levels. Level N is the |
---|
31 | ! top of layer N. |
---|
32 | ! |
---|
33 | ! L_NSPECTI is the number of IR spectral intervals |
---|
34 | ! L_NSPECTV is the number of Visual(or Solar) spectral intervals |
---|
35 | ! L_NGAUSS is the number of Gauss points for K-coefficients |
---|
36 | ! GAUSS POINT 17 (aka the last one) is the special case |
---|
37 | ! |
---|
38 | ! L_NPREF is the number of reference pressures that the |
---|
39 | ! k-coefficients are calculated on |
---|
40 | ! L_PINT is the number of Lagrange interpolated reference |
---|
41 | ! pressures for the gas k-coefficients - now for a |
---|
42 | ! smaller p-grid than before |
---|
43 | ! L_NTREF is the number of reference temperatures for the |
---|
44 | ! k-coefficients |
---|
45 | ! L_TAUMAX is the largest optical depth - larger ones are set |
---|
46 | ! to this value |
---|
47 | ! |
---|
48 | ! L_REFVAR The number of different mixing ratio values for |
---|
49 | ! the k-coefficients. Variable component of the mixture |
---|
50 | ! can in princple be anything: currently it's H2O. |
---|
51 | ! |
---|
52 | ! NAERKIND The number of radiatively active aerosol types |
---|
53 | ! |
---|
54 | ! NSIZEMAX The maximum number of aerosol particle sizes |
---|
55 | ! |
---|
56 | !----------------------------------------------------------------------C |
---|
57 | |
---|
58 | integer, parameter :: L_NLAYRAD = llm |
---|
59 | integer, parameter :: L_LEVELS = 2*(llm-1)+3 |
---|
60 | integer, parameter :: L_NLEVRAD = llm+1 |
---|
61 | |
---|
62 | ! Below are various parameter combinations that will work for the |
---|
63 | ! radiative datasets indicated. For the moment, you must change these |
---|
64 | ! values manually before compiling, each time you want to change the |
---|
65 | ! dataset. |
---|
66 | |
---|
67 | ! integer, parameter :: L_NGAUSS = 17 |
---|
68 | |
---|
69 | ! integer, parameter :: L_NPREF = 9 |
---|
70 | ! integer, parameter :: L_NTREF = 7 |
---|
71 | ! integer, parameter :: L_REFVAR = 7 ! earth / earlymars |
---|
72 | |
---|
73 | ! integer, parameter :: L_NPREF = 27 |
---|
74 | ! integer, parameter :: L_NTREF = 6 |
---|
75 | ! integer, parameter :: L_REFVAR = 1 ! Triton |
---|
76 | ! integer, parameter :: L_NGAUSS = 33 |
---|
77 | |
---|
78 | !! integer, parameter :: L_NPREF = 17 |
---|
79 | !! integer, parameter :: L_NTREF = 10 |
---|
80 | !! integer, parameter :: L_REFVAR = 1 ! Triton |
---|
81 | !! integer, parameter :: L_NGAUSS = 33 |
---|
82 | |
---|
83 | ! integer, parameter :: L_NPREF = 18 |
---|
84 | ! integer, parameter :: L_NTREF = 17 |
---|
85 | ! integer, parameter :: L_REFVAR = 1 ! Pluto_3 |
---|
86 | ! integer, parameter :: L_NGAUSS = 33 |
---|
87 | |
---|
88 | integer, parameter :: L_NPREF = 7 |
---|
89 | integer, parameter :: L_NTREF = 8 |
---|
90 | integer, parameter :: L_REFVAR = 7 ! Pluto (ch4 varie) |
---|
91 | integer, parameter :: L_NGAUSS = 33 |
---|
92 | |
---|
93 | ! integer, parameter :: L_NPREF = 17 |
---|
94 | ! integer, parameter :: L_NTREF = 10 |
---|
95 | ! integer, parameter :: L_REFVAR = 1 ! Pluton3 |
---|
96 | ! integer, parameter :: L_NGAUSS = 33 |
---|
97 | |
---|
98 | ! integer, parameter :: L_NPREF = 8 |
---|
99 | ! integer, parameter :: L_NTREF = 6 |
---|
100 | ! integer, parameter :: L_REFVAR = 1 ! pureCO2 |
---|
101 | |
---|
102 | ! integer, parameter :: L_NPREF = 9 |
---|
103 | ! integer, parameter :: L_NTREF = 14 |
---|
104 | ! integer, parameter :: L_REFVAR = 1 ! megaCO2 |
---|
105 | |
---|
106 | integer, parameter :: L_NSPECTI = NBinfrared |
---|
107 | integer, parameter :: L_NSPECTV = NBvisible |
---|
108 | |
---|
109 | integer, parameter :: L_PINT = (L_NPREF-1)*5+1 |
---|
110 | integer, parameter :: NAERKIND = 1 |
---|
111 | REAL, parameter :: L_TAUMAX = 35 |
---|
112 | |
---|
113 | ! For Planck function integration: |
---|
114 | ! equivalent temperatures are 1/10 of these values |
---|
115 | integer, parameter :: NTstar = 100 |
---|
116 | integer, parameter :: NTstop = 2000 |
---|
117 | |
---|
118 | ! Maximum number of grain size classes |
---|
119 | ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
120 | ! This parameter has to be set to the maximum number of particle |
---|
121 | ! sizes contained in the optical parameter database; For example, |
---|
122 | ! if only one grain size is used to describe dust, and 30 are used |
---|
123 | ! to describe water-ice crystals in the visible and 15 in the IR, |
---|
124 | ! nsizemax has to be set to 30. |
---|
125 | ! If only one grain size is considered for all the aerosols, set |
---|
126 | ! this parameter to 1 and convolution will be turned off during |
---|
127 | ! the radiative calculations. |
---|
128 | |
---|
129 | integer, parameter :: nsizemax = 100 ! TB17 |
---|
130 | ! integer, parameter :: nsizemax = 1 |
---|
131 | |
---|
132 | character (len=20) :: corrkdir |
---|
133 | save corrkdir |
---|
134 | |
---|
135 | character (len=30) :: banddir |
---|
136 | save banddir |
---|
137 | |
---|
138 | end module radinc_h |
---|