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

Last change on this file since 1906 was 1872, checked in by hoffmann, 9 years ago

last commit documented

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