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

Last change on this file since 280 was 266, checked in by raasch, 15 years ago

further updates concerning new dvr-features + documentation

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