source: palm/trunk/SOURCE/package_parin.f90 @ 810

Last change on this file since 810 was 791, checked in by raasch, 12 years ago

last commit documented

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