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

Last change on this file since 1036 was 1036, checked in by raasch, 9 years ago

code has been put under the GNU General Public License (v3)

  • Property svn:keywords set to Id
File size: 6.9 KB
Line 
1 SUBROUTINE package_parin
2
3!--------------------------------------------------------------------------------!
4! This file is part of PALM.
5!
6! PALM is free software: you can redistribute it and/or modify it under the terms
7! of the GNU General Public License as published by the Free Software Foundation,
8! either version 3 of the License, or (at your option) any later 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-2012  Leibniz University Hannover
18!--------------------------------------------------------------------------------!
19!
20! Current revisions:
21! -----------------
22!
23!
24! Former revisions:
25! -----------------
26! $Id: package_parin.f90 1036 2012-10-22 13:43:42Z raasch $
27!
28! 828 2012-02-21 12:00:36Z raasch
29! +dissipation_classes, radius_classes in parpar
30!
31! 825 2012-02-19 03:03:44Z raasch
32! wang_collision_kernel and turbulence_effects_on_collision in particles_par
33! replaced by collision_kernel
34!
35! 790 2011-11-29 03:11:20Z raasch
36! +turbulence_effects_on_collision, wang_collision_kernel in particles_par
37!
38! 336 2009-06-10 11:19:35Z raasch
39! +clip_dvrp_*, cluster_size, color_interval, dvrpsize_interval,
40! groundplate_color, isosurface_color, particle_color, particle_dvrpsize
41! topography_color, in dvrp_graphics_par,
42! parameter dvrp_psize moved from particles_par to dvrp_graphics_par
43! Variables for dvrp-mode pathlines added
44!
45! 210 2008-11-06 08:54:02Z raasch
46! Variables for dvrp-mode pathlines added
47!
48! 116 2007-10-11 02:30:27Z raasch
49! +dt_sort_particles in package_parin
50!
51! 60 2007-03-11 11:50:04Z raasch
52! Particles-package is now part of the default code
53!
54! RCS Log replace by Id keyword, revision history cleaned up
55!
56! Revision 1.18  2006/08/04 14:52:23  raasch
57! +dt_dopts, dt_min_part, end_time_prel, particles_per_point,
58! use_sgs_for_particles in particles_par
59!
60! Revision 1.1  2000/12/28 13:21:57  raasch
61! Initial revision
62!
63!
64! Description:
65! ------------
66! This subroutine reads from the NAMELIST file variables controling model
67! software packages which are used optionally in the run.
68!------------------------------------------------------------------------------!
69
70    USE control_parameters
71    USE dvrp_variables
72    USE particle_attributes
73    USE spectrum
74
75    IMPLICIT NONE
76
77    CHARACTER (LEN=80) ::  zeile
78
79    NAMELIST /dvrp_graphics_par/  clip_dvrp_l, clip_dvrp_n, clip_dvrp_r,       &
80                                  clip_dvrp_s, cluster_size, color_interval,   &
81                                  dt_dvrp, dvrpsize_interval, dvrp_directory,  &
82                                  dvrp_file, dvrp_host, dvrp_output,           &
83                                  dvrp_password, dvrp_psize, dvrp_username,    &
84                                  groundplate_color, isosurface_color,         &
85                                  mode_dvrp, particle_color, particle_dvrpsize,&
86                                  pathlines_fadeintime, pathlines_fadeouttime, &
87                                  pathlines_linecount, pathlines_maxhistory,   &
88                                  pathlines_wavecount, pathlines_wavetime,     &
89                                  slicer_range_limits_dvrp, superelevation,    &
90                                  superelevation_x, superelevation_y,          &
91                                  threshold, topography_color, vc_alpha,       &
92                                  vc_gradient_normals, vc_mode, vc_size_x,     &
93                                  vc_size_y, vc_size_z
94
95    NAMELIST /particles_par/      bc_par_b, bc_par_lr, bc_par_ns, bc_par_t,    &
96                                  collision_kernel, density_ratio,             &
97                                  dissipation_classes, dt_dopts,               &
98                                  dt_min_part, dt_prel, dt_sort_particles,     &
99                                  dt_write_particle_data,                      &
100                                  end_time_prel, initial_weighting_factor,     &
101                                  maximum_number_of_particles,                 &
102                                  maximum_number_of_tailpoints,                &
103                                  maximum_tailpoint_age,                       &
104                                  minimum_tailpoint_distance,                  &
105                                  number_of_particle_groups,                   &
106                                  particles_per_point,                         &
107                                  particle_advection_start,                    &
108                                  particle_maximum_age, pdx, pdy, pdz, psb,    &
109                                  psl, psn, psr, pss, pst, radius,             &
110                                  radius_classes, random_start_position,       &
111                                  read_particles_from_restartfile,             &
112                                  skip_particles_for_tail,                     &
113                                  use_particle_tails, use_sgs_for_particles,   &
114                                  vertical_particle_advection,                 &
115                                  write_particle_statistics
116    NAMELIST /spectra_par/        averaging_interval_sp, comp_spectra_level,   &
117                                  data_output_sp, dt_dosp, plot_spectra_level, &
118                                  skip_time_dosp, spectra_direction
119
120!
121!-- Position the namelist-file at the beginning (it was already opened in
122!-- parin), search for the namelist-group of the package and position the
123!-- file at this line. Do the same for each optionally used package.
124    zeile = ' '
125
126#if defined( __dvrp_graphics )
127    REWIND ( 11 )
128    zeile = ' '
129    DO   WHILE ( INDEX( zeile, '&dvrp_graphics_par' ) == 0 )
130       READ ( 11, '(A)', END=10 )  zeile
131    ENDDO
132    BACKSPACE ( 11 )
133
134!
135!-- Read user-defined namelist
136    READ ( 11, dvrp_graphics_par )
137
138 10 CONTINUE
139#endif
140
141!
142!-- Try to find particles package
143    REWIND ( 11 )
144    zeile = ' '
145    DO   WHILE ( INDEX( zeile, '&particles_par' ) == 0 )
146       READ ( 11, '(A)', END=20 )  zeile
147    ENDDO
148    BACKSPACE ( 11 )
149
150!
151!-- Read user-defined namelist
152    READ ( 11, particles_par )
153
154!
155!-- Set flag that indicates that particles are switched on
156    particle_advection = .TRUE.
157
158 20 CONTINUE
159
160
161#if defined( __spectra )
162    REWIND ( 11 )
163    zeile = ' '
164    DO   WHILE ( INDEX( zeile, '&spectra_par' ) == 0 )
165       READ ( 11, '(A)', END=30 )  zeile
166    ENDDO
167    BACKSPACE ( 11 )
168
169!
170!-- Read user-defined namelist
171    READ ( 11, spectra_par )
172
173!
174!-- Default setting of dt_dosp here (instead of check_parameters), because its
175!-- current value is needed in init_pegrid
176    IF ( dt_dosp == 9999999.9 )  dt_dosp = dt_data_output
177
178 30 CONTINUE
179#endif
180
181 END SUBROUTINE package_parin
Note: See TracBrowser for help on using the repository browser.