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