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