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

Last change on this file since 2106 was 2101, checked in by suehring, 8 years ago

last commit documented

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