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

Last change on this file since 1340 was 1340, checked in by kanani, 11 years ago

REAL constants defined as wp-kind

  • Property svn:keywords set to Id
File size: 9.0 KB
RevLine 
[1]1 SUBROUTINE package_parin
2
[1036]3!--------------------------------------------------------------------------------!
4! This file is part of PALM.
5!
6! PALM is free software: you can redistribute it and/or modify it under the terms
7! of the GNU General Public License as published by the Free Software Foundation,
8! either version 3 of the License, or (at your option) any later version.
9!
10! PALM is distributed in the hope that it will be useful, but WITHOUT ANY
11! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12! A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13!
14! You should have received a copy of the GNU General Public License along with
15! PALM. If not, see <http://www.gnu.org/licenses/>.
16!
[1310]17! Copyright 1997-2014 Leibniz Universitaet Hannover
[1036]18!--------------------------------------------------------------------------------!
19!
[484]20! Current revisions:
[1]21! -----------------
[1340]22! REAL constants defined as wp-kinds
[1321]23!
24! Former revisions:
25! -----------------
26! $Id: package_parin.f90 1340 2014-03-25 19:45:13Z kanani $
27!
[1325]28! 1324 2014-03-21 09:13:16Z suehring
29! Bugfix: Missing variable dt_data_output output added to ONLY statement
30!
[1321]31! 1320 2014-03-20 08:40:49Z raasch
[1320]32! ONLY-attribute added to USE-statements,
33! kind-parameters added to all INTEGER and REAL declaration statements,
34! kinds are defined in new module kinds,
35! old module precision_kind is removed,
36! revision history before 2012 removed,
37! comment fields (!:) to be used for variable explanations added to
38! all variable declaration statements
[392]39!
[1037]40! 1036 2012-10-22 13:43:42Z raasch
41! code put under GPL (PALM 3.9)
42!
[829]43! 828 2012-02-21 12:00:36Z raasch
44! +dissipation_classes, radius_classes in parpar
45!
[826]46! 825 2012-02-19 03:03:44Z raasch
47! wang_collision_kernel and turbulence_effects_on_collision in particles_par
48! replaced by collision_kernel
49!
[1]50! Revision 1.1  2000/12/28 13:21:57  raasch
51! Initial revision
52!
53!
54! Description:
55! ------------
56! This subroutine reads from the NAMELIST file variables controling model
57! software packages which are used optionally in the run.
58!------------------------------------------------------------------------------!
59
[1320]60    USE control_parameters,                                                    &
[1324]61        ONLY:  averaging_interval_sp, dt_data_output, dt_dopts, dt_dosp,       &
62               dt_dvrp, particle_maximum_age, skip_time_dosp, threshold
[1]63
[1320]64    USE dvrp_variables,                                                        &
65        ONLY:  clip_dvrp_l, clip_dvrp_n, clip_dvrp_r, clip_dvrp_s,             &
66               cluster_size, color_interval, dvrpsize_interval,                &
67               dvrp_directory, dvrp_file, dvrp_host, dvrp_output,              &
68               dvrp_password, dvrp_username, groundplate_color,                &
69               isosurface_color, mode_dvrp, particle_color,                    &
70               particle_dvrpsize, pathlines_fadeintime,                        &
71               pathlines_fadeouttime, pathlines_linecount,                     &
72               pathlines_maxhistory, pathlines_wavecount,                      &
73               pathlines_wavetime, slicer_range_limits_dvrp, superelevation,   &
74               superelevation_x, superelevation_y, topography_color,           &
75               vc_alpha, vc_gradient_normals, vc_mode, vc_size_x, vc_size_y,   &
76               vc_size_z
77
78    USE particle_attributes,                                                   &
79        ONLY:  bc_par_b, bc_par_lr, bc_par_ns, bc_par_t, collision_kernel,     &
80               density_ratio, dissipation_classes, dt_min_part, dt_prel,       &
81               dt_sort_particles, dt_write_particle_data, dvrp_psize,          &
82               end_time_prel, initial_weighting_factor,                        &
83               maximum_number_of_particles, maximum_number_of_tailpoints,      &
84               maximum_tailpoint_age, minimum_tailpoint_distance,              &
85               number_of_particle_groups, particles_per_point,                 &
86               particle_advection, particle_advection_start, pdx, pdy, pdz,    &
87               psb, psl, psn, psr, pss, pst, radius, radius_classes,           &
88               random_start_position, read_particles_from_restartfile,         &
89               skip_particles_for_tail, use_particle_tails,                    &
90               use_sgs_for_particles, vertical_particle_advection,             &
91               write_particle_statistics
92
93    USE spectrum,                                                              &
94        ONLY:  comp_spectra_level, data_output_sp, plot_spectra_level,         &
95               spectra_direction
96
[1]97    IMPLICIT NONE
98
[1320]99    CHARACTER (LEN=80) ::  line  !:
[1]100
[242]101    NAMELIST /dvrp_graphics_par/  clip_dvrp_l, clip_dvrp_n, clip_dvrp_r,       &
[264]102                                  clip_dvrp_s, cluster_size, color_interval,   &
103                                  dt_dvrp, dvrpsize_interval, dvrp_directory,  &
104                                  dvrp_file, dvrp_host, dvrp_output,           &
[336]105                                  dvrp_password, dvrp_psize, dvrp_username,    &
[284]106                                  groundplate_color, isosurface_color,         &
107                                  mode_dvrp, particle_color, particle_dvrpsize,&
[264]108                                  pathlines_fadeintime, pathlines_fadeouttime, &
109                                  pathlines_linecount, pathlines_maxhistory,   &
110                                  pathlines_wavecount, pathlines_wavetime,     &
111                                  slicer_range_limits_dvrp, superelevation,    &
112                                  superelevation_x, superelevation_y,          &
[284]113                                  threshold, topography_color, vc_alpha,       &
114                                  vc_gradient_normals, vc_mode, vc_size_x,     &
115                                  vc_size_y, vc_size_z
[264]116
[1]117    NAMELIST /particles_par/      bc_par_b, bc_par_lr, bc_par_ns, bc_par_t,    &
[828]118                                  collision_kernel, density_ratio,             &
119                                  dissipation_classes, dt_dopts,               &
[116]120                                  dt_min_part, dt_prel, dt_sort_particles,     &
[336]121                                  dt_write_particle_data,                      &
[1]122                                  end_time_prel, initial_weighting_factor,     &
123                                  maximum_number_of_particles,                 &
124                                  maximum_number_of_tailpoints,                &
125                                  maximum_tailpoint_age,                       &
126                                  minimum_tailpoint_distance,                  &
127                                  number_of_particle_groups,                   &
128                                  particles_per_point,                         &
129                                  particle_advection_start,                    &
130                                  particle_maximum_age, pdx, pdy, pdz, psb,    &
[828]131                                  psl, psn, psr, pss, pst, radius,             &
132                                  radius_classes, random_start_position,       &
[1]133                                  read_particles_from_restartfile,             &
[790]134                                  skip_particles_for_tail,                     &
135                                  use_particle_tails, use_sgs_for_particles,   &
[1]136                                  vertical_particle_advection,                 &
137                                  write_particle_statistics
[1320]138
[1]139    NAMELIST /spectra_par/        averaging_interval_sp, comp_spectra_level,   &
140                                  data_output_sp, dt_dosp, plot_spectra_level, &
141                                  skip_time_dosp, spectra_direction
142
143!
144!-- Position the namelist-file at the beginning (it was already opened in
145!-- parin), search for the namelist-group of the package and position the
146!-- file at this line. Do the same for each optionally used package.
[1320]147    line = ' '
[1]148
149#if defined( __dvrp_graphics )
150    REWIND ( 11 )
[1320]151    line = ' '
152    DO   WHILE ( INDEX( line, '&dvrp_graphics_par' ) == 0 )
153       READ ( 11, '(A)', END=10 )  line
[1]154    ENDDO
155    BACKSPACE ( 11 )
156
157!
158!-- Read user-defined namelist
159    READ ( 11, dvrp_graphics_par )
160
161 10 CONTINUE
162#endif
163
[60]164!
165!-- Try to find particles package
[1]166    REWIND ( 11 )
[1320]167    line = ' '
168    DO   WHILE ( INDEX( line, '&particles_par' ) == 0 )
169       READ ( 11, '(A)', END=20 )  line
[1]170    ENDDO
171    BACKSPACE ( 11 )
172
173!
174!-- Read user-defined namelist
175    READ ( 11, particles_par )
176
177!
178!-- Set flag that indicates that particles are switched on
179    particle_advection = .TRUE.
180
181 20 CONTINUE
182
[60]183
[1]184#if defined( __spectra )
185    REWIND ( 11 )
[1320]186    line = ' '
187    DO   WHILE ( INDEX( line, '&spectra_par' ) == 0 )
188       READ ( 11, '(A)', END=30 )  line
[1]189    ENDDO
190    BACKSPACE ( 11 )
191
192!
193!-- Read user-defined namelist
194    READ ( 11, spectra_par )
195
196!
197!-- Default setting of dt_dosp here (instead of check_parameters), because its
198!-- current value is needed in init_pegrid
[1340]199    IF ( dt_dosp == 9999999.9_wp )  dt_dosp = dt_data_output
[1]200
201 30 CONTINUE
202#endif
203
204 END SUBROUTINE package_parin
Note: See TracBrowser for help on using the repository browser.