source: palm/trunk/SOURCE/package_parin.f90 @ 2903

Last change on this file since 2903 was 2718, checked in by maronga, 7 years ago

deleting of deprecated files; headers updated where needed

  • Property svn:keywords set to Id
File size: 12.0 KB
Line 
1!> @file package_parin.f90
2!------------------------------------------------------------------------------!
3! This file is part of the PALM model system.
4!
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
8! version.
9!
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.
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!
17! Copyright 1997-2018 Leibniz Universitaet Hannover
18!------------------------------------------------------------------------------!
19!
20! Current revisions:
21! -----------------
22!
23!
24! Former revisions:
25! -----------------
26! $Id: package_parin.f90 2718 2018-01-02 08:49:38Z hellstea $
27! Corrected "Former revisions" section
28!
29! 2696 2017-12-14 17:12:51Z kanani
30! Change in file header (GPL part)
31!
32! 2375 2017-08-29 14:10:28Z schwenkel
33! Added aerosol_species
34!
35! 2312 2017-07-14 20:26:51Z hoffmann
36! Aerosol initialization improved.
37!
38! 2263 2017-06-08 14:59:01Z schwenkel
39! Implemented splitting and merging algorithm
40!
41! 2183 2017-03-17 14:29:15Z schwenkel
42!
43! 2182 2017-03-17 14:27:40Z schwenkel
44! Added parameters for simplified particle initialization.
45!
46! 2000 2016-08-20 18:09:15Z knoop
47! Forced header and separation lines into 80 columns
48!
49! 1936 2016-06-13 13:37:44Z suehring
50! +deallocate_memory, step_dealloc
51!
52! 1871 2016-04-15 11:46:09Z hoffmann
53! Initialization of aerosols added.
54!
55! 1833 2016-04-07 14:23:03Z raasch
56! reading of spectra_par moved to spectra_mod
57!
58! 1831 2016-04-07 13:15:51Z hoffmann
59! curvature_solution_effects added
60!
61! 1826 2016-04-07 12:01:39Z maronga
62! Reading of &radiation_par moved to radiation_model_mod.
63! Reading of &canopy_par moved to plant_canopy_model_mod.
64!
65! 822 2016-04-07 07:49:42Z hoffmann
66! +collision_algorithm
67! Tails removed.
68!
69! 1817 2016-04-06 15:44:20Z maronga
70! Reading of &lsm_par moved to land_surface_model_mod.
71!
72! 1788 2016-03-10 11:01:04Z maronga
73! Parameter dewfall removed.
74!
75! 1786 2016-03-08 05:49:27Z raasch
76! cpp-direktives for spectra removed
77!
78! 1757 2016-02-22 15:49:32Z maronga
79! Added parameter unscheduled_radiation_calls
80!
81! 1691 2015-10-26 16:17:44Z maronga
82! Added skip_time_do_lsm, skip_time_do_radiation, and emissivity
83!
84! 1682 2015-10-07 23:56:08Z knoop
85! Code annotations made doxygen readable
86!
87! 1585 2015-04-30 07:05:52Z maronga
88! Added several radiation_par parameters
89!
90! 1575 2015-03-27 09:56:27Z raasch
91! +seed_follows_topography in particles_par
92!
93! 1553 2015-03-03 17:33:54Z maronga
94! Resorting of lsm_par
95!
96! 1551 2015-03-03 14:18:16Z maronga
97! Several changes in the liste for land surface model and radiation model
98!
99! 1496 2014-12-02 17:25:50Z maronga
100! Added support for the land surface model and radiation scheme
101!
102! 1484 2014-10-21 10:53:05Z kanani
103! Changes due to new module structure of the plant canopy model:
104!   module plant_canopy_model_mod added,
105!   new package/namelist canopy_par added, i.e. the canopy model is no longer
106!   steered over the inipar-namelist,
107!   drag_coefficient, leaf_surface_concentration and scalar_exchange_coefficient
108!   renamed to canopy_drag_coeff, leaf_surface_conc and leaf_scalar_exch_coeff.
109! Changed statement tags in CONTINUE-statement
110!
111! 1367 2014-04-23 15:18:30Z witha
112! Bugfix: module kinds must be used
113!
114! 1359 2014-04-11 17:15:14Z hoffmann
115! +alloc_factor, + min_nr_particle
116! -dt_sort_particles, -maximum_number_of_particles
117!
118! 1340 2014-03-25 19:45:13Z kanani
119! REAL constants defined as wp-kinds
120!
121! 1324 2014-03-21 09:13:16Z suehring
122! Bugfix: Missing variable dt_data_output output added to ONLY statement
123!
124! 1320 2014-03-20 08:40:49Z raasch
125! ONLY-attribute added to USE-statements,
126! kind-parameters added to all INTEGER and REAL declaration statements,
127! kinds are defined in new module kinds,
128! old module precision_kind is removed,
129! revision history before 2012 removed,
130! comment fields (!:) to be used for variable explanations added to
131! all variable declaration statements
132!
133! 1036 2012-10-22 13:43:42Z raasch
134! code put under GPL (PALM 3.9)
135!
136! 828 2012-02-21 12:00:36Z raasch
137! +dissipation_classes, radius_classes in parpar
138!
139! 825 2012-02-19 03:03:44Z raasch
140! wang_collision_kernel and turbulence_effects_on_collision in particles_par
141! replaced by collision_kernel
142!
143! Revision 1.1  2000/12/28 13:21:57  raasch
144! Initial revision
145!
146!
147! Description:
148! ------------
149!> This subroutine reads from the NAMELIST file variables controling model
150!> software packages which are used optionally in the run.
151!>
152!> @todo Perform all actions in the respective submodules and remove
153!>       package_parin
154!------------------------------------------------------------------------------!
155 SUBROUTINE package_parin
156
157
158    USE control_parameters,                                                    &
159        ONLY:  dt_data_output, dt_dopts, dt_dvrp, particle_maximum_age,        &
160               threshold
161
162    USE dvrp_variables,                                                        &
163        ONLY:  clip_dvrp_l, clip_dvrp_n, clip_dvrp_r, clip_dvrp_s,             &
164               cluster_size, color_interval, dvrpsize_interval,                &
165               dvrp_directory, dvrp_file, dvrp_host, dvrp_output,              &
166               dvrp_password, dvrp_username, groundplate_color,                &
167               isosurface_color, mode_dvrp, particle_color,                    &
168               particle_dvrpsize, pathlines_fadeintime,                        &
169               pathlines_fadeouttime, pathlines_linecount,                     &
170               pathlines_maxhistory, pathlines_wavecount,                      &
171               pathlines_wavetime, slicer_range_limits_dvrp, superelevation,   &
172               superelevation_x, superelevation_y, topography_color,           &
173               vc_alpha, vc_gradient_normals, vc_mode, vc_size_x, vc_size_y,   &
174               vc_size_z
175
176    USE kinds
177
178    USE particle_attributes,                                                   &
179        ONLY:  aero_species, aero_type, aero_weight, alloc_factor, bc_par_b,   &
180               bc_par_lr, bc_par_ns, bc_par_t, collision_kernel,               &
181               curvature_solution_effects, deallocate_memory, density_ratio,   &
182               dissipation_classes, dt_min_part, dt_prel,                      &
183               dt_write_particle_data, end_time_prel, initial_weighting_factor,&
184               log_sigma, max_number_particles_per_gridbox,                    &
185               merging, min_nr_particle, na,                                   &
186               number_concentration, number_of_particle_groups,                &
187               number_particles_per_gridbox, particles_per_point,              &
188               particle_advection, particle_advection_start, pdx, pdy, pdz,    &
189               psb, psl, psn, psr, pss, pst, radius, radius_classes,           &
190               radius_merge, radius_split, random_start_position,              &
191               read_particles_from_restartfile, rm,                            &
192               seed_follows_topography, splitting, splitting_factor,           &
193               splitting_factor_max, splitting_function, splitting_mode,       &
194               step_dealloc, use_sgs_for_particles,                            &
195               vertical_particle_advection, weight_factor_merge,               &
196               weight_factor_split, write_particle_statistics
197
198    IMPLICIT NONE
199
200    CHARACTER (LEN=80) ::  line  !<
201
202
203
204    NAMELIST /dvrp_graphics_par/  clip_dvrp_l, clip_dvrp_n, clip_dvrp_r,       &
205                                  clip_dvrp_s, cluster_size, color_interval,   &
206                                  dt_dvrp, dvrpsize_interval, dvrp_directory,  &
207                                  dvrp_file, dvrp_host, dvrp_output,           &
208                                  dvrp_password, dvrp_username,                &
209                                  groundplate_color, isosurface_color,         &
210                                  mode_dvrp, particle_color, particle_dvrpsize,&
211                                  pathlines_fadeintime, pathlines_fadeouttime, &
212                                  pathlines_linecount, pathlines_maxhistory,   &
213                                  pathlines_wavecount, pathlines_wavetime,     &
214                                  slicer_range_limits_dvrp, superelevation,    &
215                                  superelevation_x, superelevation_y,          &
216                                  threshold, topography_color, vc_alpha,       &
217                                  vc_gradient_normals, vc_mode, vc_size_x,     &
218                                  vc_size_y, vc_size_z
219
220    NAMELIST /particles_par/      aero_species, aero_type, aero_weight,        &
221                                  alloc_factor, bc_par_b, bc_par_lr,           &
222                                  bc_par_ns, bc_par_t,                         &
223                                  collision_kernel, curvature_solution_effects,&
224                                  deallocate_memory, density_ratio,            &
225                                  dissipation_classes, dt_dopts,               &
226                                  dt_min_part, dt_prel,                        &
227                                  dt_write_particle_data,                      &
228                                  end_time_prel, initial_weighting_factor,     &
229                                  log_sigma,                                   &
230                                  max_number_particles_per_gridbox, merging,   &
231                                  min_nr_particle,                             &
232                                  na, number_concentration,                    &
233                                  number_of_particle_groups,                   &
234                                  number_particles_per_gridbox,                &
235                                  particles_per_point,                         &
236                                  particle_advection_start,                    &
237                                  particle_maximum_age, pdx, pdy, pdz, psb,    &
238                                  psl, psn, psr, pss, pst, radius,             &
239                                  radius_classes, radius_merge, radius_split,  &
240                                  random_start_position,                       &
241                                  read_particles_from_restartfile, rm,         &
242                                  seed_follows_topography,                     &
243                                  splitting, splitting_factor,                 &
244                                  splitting_factor_max, splitting_function,    &
245                                  splitting_mode, step_dealloc,                &
246                                  use_sgs_for_particles,                       &
247                                  vertical_particle_advection,                 &
248                                  weight_factor_merge, weight_factor_split,    &
249                                  write_particle_statistics
250
251!
252!-- Position the namelist-file at the beginning (it was already opened in
253!-- parin), search for the namelist-group of the package and position the
254!-- file at this line. Do the same for each optionally used package.
255    line = ' '
256
257
258#if defined( __dvrp_graphics )
259    REWIND ( 11 )
260    line = ' '
261    DO   WHILE ( INDEX( line, '&dvrp_graphics_par' ) == 0 )
262       READ ( 11, '(A)', END=20 )  line
263    ENDDO
264    BACKSPACE ( 11 )
265
266!
267!-- Read user-defined namelist
268    READ ( 11, dvrp_graphics_par )
269
270 20 CONTINUE
271#endif
272
273!
274!-- Try to find particles package
275    REWIND ( 11 )
276    line = ' '
277    DO   WHILE ( INDEX( line, '&particles_par' ) == 0 )
278       READ ( 11, '(A)', END=30 )  line
279    ENDDO
280    BACKSPACE ( 11 )
281
282!
283!-- Read user-defined namelist
284    READ ( 11, particles_par )
285
286!
287!-- Set flag that indicates that particles are switched on
288    particle_advection = .TRUE.
289
290 30 CONTINUE
291
292 END SUBROUTINE package_parin
Note: See TracBrowser for help on using the repository browser.