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