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