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