1 | SUBROUTINE package_parin |
---|
2 | |
---|
3 | !------------------------------------------------------------------------------! |
---|
4 | ! Actual revisions: |
---|
5 | ! ----------------- |
---|
6 | ! |
---|
7 | ! |
---|
8 | ! Former revisions: |
---|
9 | ! ----------------- |
---|
10 | ! $Log: package_parin.f90,v $ |
---|
11 | ! Revision 1.18 2006/08/04 14:52:23 raasch |
---|
12 | ! +dt_dopts, dt_min_part, end_time_prel, particles_per_point, |
---|
13 | ! use_sgs_for_particles in particles_par |
---|
14 | ! |
---|
15 | ! Revision 1.17 2006/04/11 14:59:05 raasch |
---|
16 | ! pl_spectra renamed data_output_sp |
---|
17 | ! |
---|
18 | ! Revision 1.16 2006/02/23 12:43:24 raasch |
---|
19 | ! +number_of_particle_groups, skip_particles_for_tail, use_particle_tails in |
---|
20 | ! particles_par, |
---|
21 | ! +skip_time_dosp in spectra_par, |
---|
22 | ! dt_plsp renamed dt_dosp, default setting of dt_dops, |
---|
23 | ! set flag particle_advection |
---|
24 | ! |
---|
25 | ! Revision 1.15 2005/06/26 20:05:42 raasch |
---|
26 | ! diameter renamed radius |
---|
27 | ! |
---|
28 | ! Revision 1.14 2003/10/29 09:01:29 raasch |
---|
29 | ! +diameter in particles_par, uniform_psize renamed dvrp_psize |
---|
30 | ! |
---|
31 | ! Revision 1.13 2003/08/01 08:43:33 raasch |
---|
32 | ! +slicer_range_limits_dvrp in dvrp_graphics_par |
---|
33 | ! |
---|
34 | ! Revision 1.12 2003/03/16 09:42:11 raasch |
---|
35 | ! Two underscores (_) are placed in front of all define-strings |
---|
36 | ! |
---|
37 | ! Revision 1.11 2002/09/12 13:06:50 raasch |
---|
38 | ! +density_ratio in particles_par |
---|
39 | ! |
---|
40 | ! Revision 1.10 2002/04/16 08:10:08 raasch |
---|
41 | ! +variables for particle boundary conditions, +vertical_particle_advection |
---|
42 | ! in particles_par |
---|
43 | ! |
---|
44 | ! Revision 1.9 2001/11/12 16:07:04 raasch |
---|
45 | ! +read_particles_from_restartfile |
---|
46 | ! |
---|
47 | ! Revision 1.7 2001/08/21 09:52:55 raasch |
---|
48 | ! +superelevation, superelevation_x, superelevation_y in dvrp_graphics_par, |
---|
49 | ! +maximum_number_of_particles, maximum_number_of_tailpoints, |
---|
50 | ! maximum_tailpoint_age, minimum_tailpoint_distance in particles_par |
---|
51 | ! |
---|
52 | ! Revision 1.6 2001/07/12 12:42:49 raasch |
---|
53 | ! +several new parameters in dvrp_graphics_par and particles_par |
---|
54 | ! |
---|
55 | ! Revision 1.5 2001/03/30 07:37:56 raasch |
---|
56 | ! Namelist names changed, |
---|
57 | ! Translation of remaining German identifiers (variables, subroutines, etc.) |
---|
58 | ! |
---|
59 | ! Revision 1.4 2001/01/25 07:10:48 raasch |
---|
60 | ! +write_particle_informations |
---|
61 | ! |
---|
62 | ! Revision 1.2 2001/01/05 15:13:34 raasch |
---|
63 | ! Spectra package added |
---|
64 | ! |
---|
65 | ! Revision 1.1 2000/12/28 13:21:57 raasch |
---|
66 | ! Initial revision |
---|
67 | ! |
---|
68 | ! |
---|
69 | ! Description: |
---|
70 | ! ------------ |
---|
71 | ! This subroutine reads from the NAMELIST file variables controling model |
---|
72 | ! software packages which are used optionally in the run. |
---|
73 | !------------------------------------------------------------------------------! |
---|
74 | |
---|
75 | USE control_parameters |
---|
76 | USE dvrp_variables |
---|
77 | USE particle_attributes |
---|
78 | USE spectrum |
---|
79 | |
---|
80 | IMPLICIT NONE |
---|
81 | |
---|
82 | CHARACTER (LEN=80) :: zeile |
---|
83 | |
---|
84 | NAMELIST /dvrp_graphics_par/ dt_dvrp, dvrp_directory, dvrp_file, & |
---|
85 | dvrp_host, dvrp_output, dvrp_password, & |
---|
86 | dvrp_username, mode_dvrp, & |
---|
87 | slicer_range_limits_dvrp, superelevation, & |
---|
88 | superelevation_x, superelevation_y, threshold |
---|
89 | NAMELIST /particles_par/ bc_par_b, bc_par_lr, bc_par_ns, bc_par_t, & |
---|
90 | density_ratio, radius, dt_dopts, & |
---|
91 | dt_min_part, dt_prel, & |
---|
92 | dt_write_particle_data, dvrp_psize, & |
---|
93 | end_time_prel, initial_weighting_factor, & |
---|
94 | maximum_number_of_particles, & |
---|
95 | maximum_number_of_tailpoints, & |
---|
96 | maximum_tailpoint_age, & |
---|
97 | minimum_tailpoint_distance, & |
---|
98 | number_of_particle_groups, & |
---|
99 | particles_per_point, & |
---|
100 | particle_advection_start, & |
---|
101 | particle_maximum_age, pdx, pdy, pdz, psb, & |
---|
102 | psl, psn, psr, pss, pst, & |
---|
103 | random_start_position, & |
---|
104 | read_particles_from_restartfile, & |
---|
105 | skip_particles_for_tail, use_particle_tails, & |
---|
106 | use_sgs_for_particles, & |
---|
107 | vertical_particle_advection, & |
---|
108 | write_particle_statistics |
---|
109 | NAMELIST /spectra_par/ averaging_interval_sp, comp_spectra_level, & |
---|
110 | data_output_sp, dt_dosp, plot_spectra_level, & |
---|
111 | skip_time_dosp, spectra_direction |
---|
112 | |
---|
113 | ! |
---|
114 | !-- Position the namelist-file at the beginning (it was already opened in |
---|
115 | !-- parin), search for the namelist-group of the package and position the |
---|
116 | !-- file at this line. Do the same for each optionally used package. |
---|
117 | zeile = ' ' |
---|
118 | |
---|
119 | #if defined( __dvrp_graphics ) |
---|
120 | REWIND ( 11 ) |
---|
121 | zeile = ' ' |
---|
122 | DO WHILE ( INDEX( zeile, '&dvrp_graphics_par' ) == 0 ) |
---|
123 | READ ( 11, '(A)', END=10 ) zeile |
---|
124 | ENDDO |
---|
125 | BACKSPACE ( 11 ) |
---|
126 | |
---|
127 | ! |
---|
128 | !-- Read user-defined namelist |
---|
129 | READ ( 11, dvrp_graphics_par ) |
---|
130 | |
---|
131 | 10 CONTINUE |
---|
132 | #endif |
---|
133 | |
---|
134 | #if defined( __particles ) |
---|
135 | REWIND ( 11 ) |
---|
136 | zeile = ' ' |
---|
137 | DO WHILE ( INDEX( zeile, '&particles_par' ) == 0 ) |
---|
138 | READ ( 11, '(A)', END=20 ) zeile |
---|
139 | ENDDO |
---|
140 | BACKSPACE ( 11 ) |
---|
141 | |
---|
142 | ! |
---|
143 | !-- Read user-defined namelist |
---|
144 | READ ( 11, particles_par ) |
---|
145 | |
---|
146 | ! |
---|
147 | !-- Set flag that indicates that particles are switched on |
---|
148 | particle_advection = .TRUE. |
---|
149 | |
---|
150 | 20 CONTINUE |
---|
151 | #endif |
---|
152 | |
---|
153 | #if defined( __spectra ) |
---|
154 | REWIND ( 11 ) |
---|
155 | zeile = ' ' |
---|
156 | DO WHILE ( INDEX( zeile, '&spectra_par' ) == 0 ) |
---|
157 | READ ( 11, '(A)', END=30 ) zeile |
---|
158 | ENDDO |
---|
159 | BACKSPACE ( 11 ) |
---|
160 | |
---|
161 | ! |
---|
162 | !-- Read user-defined namelist |
---|
163 | READ ( 11, spectra_par ) |
---|
164 | |
---|
165 | ! |
---|
166 | !-- Default setting of dt_dosp here (instead of check_parameters), because its |
---|
167 | !-- current value is needed in init_pegrid |
---|
168 | IF ( dt_dosp == 9999999.9 ) dt_dosp = dt_data_output |
---|
169 | |
---|
170 | 30 CONTINUE |
---|
171 | #endif |
---|
172 | |
---|
173 | END SUBROUTINE package_parin |
---|