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

Last change on this file since 1940 was 1937, checked in by suehring, 8 years ago

last commit documented

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