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