1 | !> @file package_parin.f90 |
---|
2 | !--------------------------------------------------------------------------------! |
---|
3 | ! This file is part of PALM. |
---|
4 | ! |
---|
5 | ! PALM is free software: you can redistribute it and/or modify it under the terms |
---|
6 | ! of the GNU General Public License as published by the Free Software Foundation, |
---|
7 | ! either version 3 of the License, or (at your option) any later version. |
---|
8 | ! |
---|
9 | ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY |
---|
10 | ! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
---|
11 | ! A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
---|
12 | ! |
---|
13 | ! You should have received a copy of the GNU General Public License along with |
---|
14 | ! PALM. If not, see <http://www.gnu.org/licenses/>. |
---|
15 | ! |
---|
16 | ! Copyright 1997-2016 Leibniz Universitaet Hannover |
---|
17 | !--------------------------------------------------------------------------------! |
---|
18 | ! |
---|
19 | ! Current revisions: |
---|
20 | ! ----------------- |
---|
21 | ! |
---|
22 | ! |
---|
23 | ! Former revisions: |
---|
24 | ! ----------------- |
---|
25 | ! $Id: package_parin.f90 1914 2016-05-26 14:44:07Z suehring $ |
---|
26 | ! |
---|
27 | ! 1871 2016-04-15 11:46:09Z hoffmann |
---|
28 | ! Initialization of aerosols added. |
---|
29 | ! |
---|
30 | ! 1839 2016-04-07 18:48:14Z witha |
---|
31 | ! Reading of &wind_turbine_par moved to wind_turbine_model_mod |
---|
32 | ! |
---|
33 | ! 1833 2016-04-07 14:23:03Z raasch |
---|
34 | ! reading of spectra_par moved to spectra_mod |
---|
35 | ! |
---|
36 | ! 1831 2016-04-07 13:15:51Z hoffmann |
---|
37 | ! curvature_solution_effects added |
---|
38 | ! |
---|
39 | ! 1826 2016-04-07 12:01:39Z maronga |
---|
40 | ! Reading of &radiation_par moved to radiation_model_mod. |
---|
41 | ! Reading of &canopy_par moved to plant_canopy_model_mod. |
---|
42 | ! |
---|
43 | ! 822 2016-04-07 07:49:42Z hoffmann |
---|
44 | ! +collision_algorithm |
---|
45 | ! Tails removed. |
---|
46 | |
---|
47 | ! 1819 2016-04-06 21:05:15Z witha |
---|
48 | ! Added namelist for wind turbine model |
---|
49 | ! |
---|
50 | ! 1817 2016-04-06 15:44:20Z maronga |
---|
51 | ! Reading of &lsm_par moved to land_surface_model_mod. |
---|
52 | ! |
---|
53 | ! 1788 2016-03-10 11:01:04Z maronga |
---|
54 | ! Parameter dewfall removed. |
---|
55 | ! |
---|
56 | ! 1786 2016-03-08 05:49:27Z raasch |
---|
57 | ! cpp-direktives for spectra removed |
---|
58 | ! |
---|
59 | ! 1757 2016-02-22 15:49:32Z maronga |
---|
60 | ! Added parameter unscheduled_radiation_calls |
---|
61 | ! |
---|
62 | ! 1691 2015-10-26 16:17:44Z maronga |
---|
63 | ! Added skip_time_do_lsm, skip_time_do_radiation, and emissivity |
---|
64 | ! |
---|
65 | ! 1682 2015-10-07 23:56:08Z knoop |
---|
66 | ! Code annotations made doxygen readable |
---|
67 | ! |
---|
68 | ! 1585 2015-04-30 07:05:52Z maronga |
---|
69 | ! Added several radiation_par parameters |
---|
70 | ! |
---|
71 | ! 1575 2015-03-27 09:56:27Z raasch |
---|
72 | ! +seed_follows_topography in particles_par |
---|
73 | ! |
---|
74 | ! 1553 2015-03-03 17:33:54Z maronga |
---|
75 | ! Resorting of lsm_par |
---|
76 | ! |
---|
77 | ! 1551 2015-03-03 14:18:16Z maronga |
---|
78 | ! Several changes in the liste for land surface model and radiation model |
---|
79 | ! |
---|
80 | ! 1496 2014-12-02 17:25:50Z maronga |
---|
81 | ! Added support for the land surface model and radiation scheme |
---|
82 | ! |
---|
83 | ! 1484 2014-10-21 10:53:05Z kanani |
---|
84 | ! Changes due to new module structure of the plant canopy model: |
---|
85 | ! module plant_canopy_model_mod added, |
---|
86 | ! new package/namelist canopy_par added, i.e. the canopy model is no longer |
---|
87 | ! steered over the inipar-namelist, |
---|
88 | ! drag_coefficient, leaf_surface_concentration and scalar_exchange_coefficient |
---|
89 | ! renamed to canopy_drag_coeff, leaf_surface_conc and leaf_scalar_exch_coeff. |
---|
90 | ! Changed statement tags in CONTINUE-statement |
---|
91 | ! |
---|
92 | ! 1367 2014-04-23 15:18:30Z witha |
---|
93 | ! Bugfix: module kinds must be used |
---|
94 | ! |
---|
95 | ! 1359 2014-04-11 17:15:14Z hoffmann |
---|
96 | ! +alloc_factor, + min_nr_particle |
---|
97 | ! -dt_sort_particles, -maximum_number_of_particles |
---|
98 | ! |
---|
99 | ! 1340 2014-03-25 19:45:13Z kanani |
---|
100 | ! REAL constants defined as wp-kinds |
---|
101 | ! |
---|
102 | ! 1324 2014-03-21 09:13:16Z suehring |
---|
103 | ! Bugfix: Missing variable dt_data_output output added to ONLY statement |
---|
104 | ! |
---|
105 | ! 1320 2014-03-20 08:40:49Z raasch |
---|
106 | ! ONLY-attribute added to USE-statements, |
---|
107 | ! kind-parameters added to all INTEGER and REAL declaration statements, |
---|
108 | ! kinds are defined in new module kinds, |
---|
109 | ! old module precision_kind is removed, |
---|
110 | ! revision history before 2012 removed, |
---|
111 | ! comment fields (!:) to be used for variable explanations added to |
---|
112 | ! all variable declaration statements |
---|
113 | ! |
---|
114 | ! 1036 2012-10-22 13:43:42Z raasch |
---|
115 | ! code put under GPL (PALM 3.9) |
---|
116 | ! |
---|
117 | ! 828 2012-02-21 12:00:36Z raasch |
---|
118 | ! +dissipation_classes, radius_classes in parpar |
---|
119 | ! |
---|
120 | ! 825 2012-02-19 03:03:44Z raasch |
---|
121 | ! wang_collision_kernel and turbulence_effects_on_collision in particles_par |
---|
122 | ! replaced by collision_kernel |
---|
123 | ! |
---|
124 | ! Revision 1.1 2000/12/28 13:21:57 raasch |
---|
125 | ! Initial revision |
---|
126 | ! |
---|
127 | ! |
---|
128 | ! Description: |
---|
129 | ! ------------ |
---|
130 | !> This subroutine reads from the NAMELIST file variables controling model |
---|
131 | !> software packages which are used optionally in the run. |
---|
132 | !> |
---|
133 | !> @todo Perform all actions in the respective submodules and remove |
---|
134 | !> package_parin |
---|
135 | !------------------------------------------------------------------------------! |
---|
136 | SUBROUTINE package_parin |
---|
137 | |
---|
138 | |
---|
139 | USE control_parameters, & |
---|
140 | ONLY: dt_data_output, dt_dopts, dt_dvrp, particle_maximum_age, & |
---|
141 | threshold |
---|
142 | |
---|
143 | USE dvrp_variables, & |
---|
144 | ONLY: clip_dvrp_l, clip_dvrp_n, clip_dvrp_r, clip_dvrp_s, & |
---|
145 | cluster_size, color_interval, dvrpsize_interval, & |
---|
146 | dvrp_directory, dvrp_file, dvrp_host, dvrp_output, & |
---|
147 | dvrp_password, dvrp_username, groundplate_color, & |
---|
148 | isosurface_color, mode_dvrp, particle_color, & |
---|
149 | particle_dvrpsize, pathlines_fadeintime, & |
---|
150 | pathlines_fadeouttime, pathlines_linecount, & |
---|
151 | pathlines_maxhistory, pathlines_wavecount, & |
---|
152 | pathlines_wavetime, slicer_range_limits_dvrp, superelevation, & |
---|
153 | superelevation_x, superelevation_y, topography_color, & |
---|
154 | vc_alpha, vc_gradient_normals, vc_mode, vc_size_x, vc_size_y, & |
---|
155 | vc_size_z |
---|
156 | |
---|
157 | USE kinds |
---|
158 | |
---|
159 | USE particle_attributes, & |
---|
160 | ONLY: alloc_factor, bc_par_b, bc_par_lr, bc_par_ns, bc_par_t, & |
---|
161 | collision_algorithm, collision_kernel, & |
---|
162 | curvature_solution_effects, density_ratio, dissipation_classes, & |
---|
163 | dt_min_part, dt_prel, dt_write_particle_data, & |
---|
164 | end_time_prel, initial_weighting_factor, & |
---|
165 | init_aerosol_probabilistic, min_nr_particle, & |
---|
166 | monodisperse_aerosols, n1, n2, n3, number_of_particle_groups, & |
---|
167 | particles_per_point, particle_advection, & |
---|
168 | particle_advection_start, & |
---|
169 | pdx, pdy, pdz, psb, psl, psn, psr, pss, pst, radius, & |
---|
170 | radius_classes, random_start_position, & |
---|
171 | read_particles_from_restartfile, rm1, rm2, rm3, & |
---|
172 | seed_follows_topography, s1, s2, s3, use_sgs_for_particles, & |
---|
173 | vertical_particle_advection, write_particle_statistics |
---|
174 | |
---|
175 | IMPLICIT NONE |
---|
176 | |
---|
177 | CHARACTER (LEN=80) :: line !< |
---|
178 | |
---|
179 | |
---|
180 | |
---|
181 | NAMELIST /dvrp_graphics_par/ clip_dvrp_l, clip_dvrp_n, clip_dvrp_r, & |
---|
182 | clip_dvrp_s, cluster_size, color_interval, & |
---|
183 | dt_dvrp, dvrpsize_interval, dvrp_directory, & |
---|
184 | dvrp_file, dvrp_host, dvrp_output, & |
---|
185 | dvrp_password, dvrp_username, & |
---|
186 | groundplate_color, isosurface_color, & |
---|
187 | mode_dvrp, particle_color, particle_dvrpsize,& |
---|
188 | pathlines_fadeintime, pathlines_fadeouttime, & |
---|
189 | pathlines_linecount, pathlines_maxhistory, & |
---|
190 | pathlines_wavecount, pathlines_wavetime, & |
---|
191 | slicer_range_limits_dvrp, superelevation, & |
---|
192 | superelevation_x, superelevation_y, & |
---|
193 | threshold, topography_color, vc_alpha, & |
---|
194 | vc_gradient_normals, vc_mode, vc_size_x, & |
---|
195 | vc_size_y, vc_size_z |
---|
196 | |
---|
197 | NAMELIST /particles_par/ alloc_factor, bc_par_b, bc_par_lr, & |
---|
198 | bc_par_ns, bc_par_t, collision_algorithm, & |
---|
199 | collision_kernel, curvature_solution_effects,& |
---|
200 | density_ratio, dissipation_classes, dt_dopts,& |
---|
201 | dt_min_part, dt_prel, & |
---|
202 | dt_write_particle_data, & |
---|
203 | end_time_prel, initial_weighting_factor, & |
---|
204 | init_aerosol_probabilistic, & |
---|
205 | min_nr_particle, monodisperse_aerosols, & |
---|
206 | n1, n2, n3, number_of_particle_groups, & |
---|
207 | particles_per_point, & |
---|
208 | particle_advection_start, & |
---|
209 | particle_maximum_age, pdx, pdy, pdz, psb, & |
---|
210 | psl, psn, psr, pss, pst, radius, & |
---|
211 | radius_classes, random_start_position, & |
---|
212 | read_particles_from_restartfile, & |
---|
213 | rm1, rm2, rm3, & |
---|
214 | seed_follows_topography, s1, s2, s3, & |
---|
215 | use_sgs_for_particles, & |
---|
216 | vertical_particle_advection, & |
---|
217 | write_particle_statistics |
---|
218 | |
---|
219 | ! |
---|
220 | !-- Position the namelist-file at the beginning (it was already opened in |
---|
221 | !-- parin), search for the namelist-group of the package and position the |
---|
222 | !-- file at this line. Do the same for each optionally used package. |
---|
223 | line = ' ' |
---|
224 | |
---|
225 | |
---|
226 | #if defined( __dvrp_graphics ) |
---|
227 | REWIND ( 11 ) |
---|
228 | line = ' ' |
---|
229 | DO WHILE ( INDEX( line, '&dvrp_graphics_par' ) == 0 ) |
---|
230 | READ ( 11, '(A)', END=20 ) line |
---|
231 | ENDDO |
---|
232 | BACKSPACE ( 11 ) |
---|
233 | |
---|
234 | ! |
---|
235 | !-- Read user-defined namelist |
---|
236 | READ ( 11, dvrp_graphics_par ) |
---|
237 | |
---|
238 | 20 CONTINUE |
---|
239 | #endif |
---|
240 | |
---|
241 | ! |
---|
242 | !-- Try to find particles package |
---|
243 | REWIND ( 11 ) |
---|
244 | line = ' ' |
---|
245 | DO WHILE ( INDEX( line, '&particles_par' ) == 0 ) |
---|
246 | READ ( 11, '(A)', END=30 ) line |
---|
247 | ENDDO |
---|
248 | BACKSPACE ( 11 ) |
---|
249 | |
---|
250 | ! |
---|
251 | !-- Read user-defined namelist |
---|
252 | READ ( 11, particles_par ) |
---|
253 | |
---|
254 | ! |
---|
255 | !-- Set flag that indicates that particles are switched on |
---|
256 | particle_advection = .TRUE. |
---|
257 | |
---|
258 | 30 CONTINUE |
---|
259 | |
---|
260 | END SUBROUTINE package_parin |
---|