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