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

Last change on this file since 2326 was 2312, checked in by hoffmann, 7 years ago

various improvements of the LCM

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