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

Last change on this file since 1831 was 1831, checked in by hoffmann, 9 years ago

cloud physics variables renamed

  • Property svn:keywords set to Id
File size: 10.8 KB
RevLine 
[1682]1!> @file package_parin.f90
[1036]2!--------------------------------------------------------------------------------!
3! This file is part of PALM.
4!
5! PALM is free software: you can redistribute it and/or modify it under the terms
6! of the GNU General Public License as published by the Free Software Foundation,
7! either version 3 of the License, or (at your option) any later version.
8!
9! PALM is distributed in the hope that it will be useful, but WITHOUT ANY
10! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11! A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
12!
13! You should have received a copy of the GNU General Public License along with
14! PALM. If not, see <http://www.gnu.org/licenses/>.
15!
[1818]16! Copyright 1997-2016 Leibniz Universitaet Hannover
[1036]17!--------------------------------------------------------------------------------!
18!
[484]19! Current revisions:
[1]20! -----------------
[1831]21! curvature_solution_effects added
[1789]22!
[1485]23! Former revisions:
24! -----------------
25! $Id: package_parin.f90 1831 2016-04-07 13:15:51Z hoffmann $
26!
[1827]27! 1826 2016-04-07 12:01:39Z maronga
28! Reading of &radiation_par moved to radiation_model_mod.
29! Reading of &canopy_par moved to plant_canopy_model_mod.
30!
[1823]31! 822 2016-04-07 07:49:42Z hoffmann
32! +collision_algorithm
33! Tails removed.
34!
[1818]35! 1817 2016-04-06 15:44:20Z maronga
[1826]36! Reading of &lsm_par moved to land_surface_model_mod.
[1818]37!
[1789]38! 1788 2016-03-10 11:01:04Z maronga
39! Parameter dewfall removed.
40!
[1787]41! 1786 2016-03-08 05:49:27Z raasch
42! cpp-direktives for spectra removed
43!
[1758]44! 1757 2016-02-22 15:49:32Z maronga
45! Added parameter unscheduled_radiation_calls
46!
[1692]47! 1691 2015-10-26 16:17:44Z maronga
48! Added skip_time_do_lsm, skip_time_do_radiation, and emissivity
49!
[1683]50! 1682 2015-10-07 23:56:08Z knoop
51! Code annotations made doxygen readable
52!
[1586]53! 1585 2015-04-30 07:05:52Z maronga
54! Added several radiation_par parameters
55!
[1576]56! 1575 2015-03-27 09:56:27Z raasch
57! +seed_follows_topography in particles_par
58!
[1554]59! 1553 2015-03-03 17:33:54Z maronga
60! Resorting of lsm_par
61!
[1552]62! 1551 2015-03-03 14:18:16Z maronga
63! Several changes in the liste for land surface model and radiation model
64!
[1497]65! 1496 2014-12-02 17:25:50Z maronga
66! Added support for the land surface model and radiation scheme
67!
[1485]68! 1484 2014-10-21 10:53:05Z kanani
[1484]69! Changes due to new module structure of the plant canopy model:
70!   module plant_canopy_model_mod added,
71!   new package/namelist canopy_par added, i.e. the canopy model is no longer
72!   steered over the inipar-namelist,
73!   drag_coefficient, leaf_surface_concentration and scalar_exchange_coefficient
74!   renamed to canopy_drag_coeff, leaf_surface_conc and leaf_scalar_exch_coeff.
75! Changed statement tags in CONTINUE-statement
[1341]76!
[1368]77! 1367 2014-04-23 15:18:30Z witha
78! Bugfix: module kinds must be used
79!
[1360]80! 1359 2014-04-11 17:15:14Z hoffmann
81! +alloc_factor, + min_nr_particle
82! -dt_sort_particles, -maximum_number_of_particles
83!
[1341]84! 1340 2014-03-25 19:45:13Z kanani
85! REAL constants defined as wp-kinds
86!
[1325]87! 1324 2014-03-21 09:13:16Z suehring
88! Bugfix: Missing variable dt_data_output output added to ONLY statement
89!
[1321]90! 1320 2014-03-20 08:40:49Z raasch
[1320]91! ONLY-attribute added to USE-statements,
92! kind-parameters added to all INTEGER and REAL declaration statements,
93! kinds are defined in new module kinds,
94! old module precision_kind is removed,
95! revision history before 2012 removed,
96! comment fields (!:) to be used for variable explanations added to
97! all variable declaration statements
[392]98!
[1037]99! 1036 2012-10-22 13:43:42Z raasch
100! code put under GPL (PALM 3.9)
101!
[829]102! 828 2012-02-21 12:00:36Z raasch
103! +dissipation_classes, radius_classes in parpar
104!
[826]105! 825 2012-02-19 03:03:44Z raasch
106! wang_collision_kernel and turbulence_effects_on_collision in particles_par
107! replaced by collision_kernel
108!
[1]109! Revision 1.1  2000/12/28 13:21:57  raasch
110! Initial revision
111!
112!
113! Description:
114! ------------
[1682]115!> This subroutine reads from the NAMELIST file variables controling model
116!> software packages which are used optionally in the run.
[1691]117!>
118!> @todo Perform all actions in the respective submodules and remove
119!>       package_parin
[1]120!------------------------------------------------------------------------------!
[1682]121 SUBROUTINE package_parin
122 
[1]123
[1320]124    USE control_parameters,                                                    &
[1324]125        ONLY:  averaging_interval_sp, dt_data_output, dt_dopts, dt_dosp,       &
[1496]126               dt_dvrp, particle_maximum_age, skip_time_dosp,                  &
127               threshold
[1]128
[1320]129    USE dvrp_variables,                                                        &
130        ONLY:  clip_dvrp_l, clip_dvrp_n, clip_dvrp_r, clip_dvrp_s,             &
131               cluster_size, color_interval, dvrpsize_interval,                &
132               dvrp_directory, dvrp_file, dvrp_host, dvrp_output,              &
133               dvrp_password, dvrp_username, groundplate_color,                &
134               isosurface_color, mode_dvrp, particle_color,                    &
135               particle_dvrpsize, pathlines_fadeintime,                        &
136               pathlines_fadeouttime, pathlines_linecount,                     &
137               pathlines_maxhistory, pathlines_wavecount,                      &
138               pathlines_wavetime, slicer_range_limits_dvrp, superelevation,   &
139               superelevation_x, superelevation_y, topography_color,           &
140               vc_alpha, vc_gradient_normals, vc_mode, vc_size_x, vc_size_y,   &
141               vc_size_z
142
[1367]143    USE kinds
144
[1320]145    USE particle_attributes,                                                   &
[1359]146        ONLY:  alloc_factor, bc_par_b, bc_par_lr, bc_par_ns, bc_par_t,         &
[1831]147               collision_algorithm, collision_kernel,                          &
148               curvature_solution_effects, density_ratio,                      &
[1822]149               dissipation_classes, dt_min_part, dt_prel,                      &
150               dt_write_particle_data,                                         &
[1320]151               end_time_prel, initial_weighting_factor,                        &
[1359]152               min_nr_particle, number_of_particle_groups, particles_per_point,&
[1320]153               particle_advection, particle_advection_start, pdx, pdy, pdz,    &
154               psb, psl, psn, psr, pss, pst, radius, radius_classes,           &
155               random_start_position, read_particles_from_restartfile,         &
[1822]156               seed_follows_topography, use_sgs_for_particles,                 &
[1575]157               vertical_particle_advection, write_particle_statistics
[1320]158
159    USE spectrum,                                                              &
160        ONLY:  comp_spectra_level, data_output_sp, plot_spectra_level,         &
161               spectra_direction
162
[1]163    IMPLICIT NONE
164
[1682]165    CHARACTER (LEN=80) ::  line  !<
[1]166
[1484]167
[1826]168
[242]169    NAMELIST /dvrp_graphics_par/  clip_dvrp_l, clip_dvrp_n, clip_dvrp_r,       &
[264]170                                  clip_dvrp_s, cluster_size, color_interval,   &
171                                  dt_dvrp, dvrpsize_interval, dvrp_directory,  &
172                                  dvrp_file, dvrp_host, dvrp_output,           &
[1822]173                                  dvrp_password, dvrp_username,                &
[284]174                                  groundplate_color, isosurface_color,         &
175                                  mode_dvrp, particle_color, particle_dvrpsize,&
[264]176                                  pathlines_fadeintime, pathlines_fadeouttime, &
177                                  pathlines_linecount, pathlines_maxhistory,   &
178                                  pathlines_wavecount, pathlines_wavetime,     &
179                                  slicer_range_limits_dvrp, superelevation,    &
180                                  superelevation_x, superelevation_y,          &
[284]181                                  threshold, topography_color, vc_alpha,       &
182                                  vc_gradient_normals, vc_mode, vc_size_x,     &
183                                  vc_size_y, vc_size_z
[264]184
[1359]185    NAMELIST /particles_par/      alloc_factor, bc_par_b, bc_par_lr,           &
[1822]186                                  bc_par_ns, bc_par_t, collision_algorithm,    &
[1831]187                                  collision_kernel, curvature_solution_effects,&
[1359]188                                  density_ratio, dissipation_classes, dt_dopts,&
189                                  dt_min_part, dt_prel,                        &
[336]190                                  dt_write_particle_data,                      &
[1]191                                  end_time_prel, initial_weighting_factor,     &
[1359]192                                  min_nr_particle,                             &
[1]193                                  number_of_particle_groups,                   &
194                                  particles_per_point,                         &
195                                  particle_advection_start,                    &
196                                  particle_maximum_age, pdx, pdy, pdz, psb,    &
[828]197                                  psl, psn, psr, pss, pst, radius,             &
198                                  radius_classes, random_start_position,       &
[1]199                                  read_particles_from_restartfile,             &
[1575]200                                  seed_follows_topography,                     &
[1822]201                                  use_sgs_for_particles,                       &
[1]202                                  vertical_particle_advection,                 &
203                                  write_particle_statistics
[1320]204
[1]205    NAMELIST /spectra_par/        averaging_interval_sp, comp_spectra_level,   &
206                                  data_output_sp, dt_dosp, plot_spectra_level, &
207                                  skip_time_dosp, spectra_direction
208
209!
210!-- Position the namelist-file at the beginning (it was already opened in
211!-- parin), search for the namelist-group of the package and position the
212!-- file at this line. Do the same for each optionally used package.
[1320]213    line = ' '
[1]214
[1484]215
[1]216#if defined( __dvrp_graphics )
217    REWIND ( 11 )
[1320]218    line = ' '
219    DO   WHILE ( INDEX( line, '&dvrp_graphics_par' ) == 0 )
[1484]220       READ ( 11, '(A)', END=20 )  line
[1]221    ENDDO
222    BACKSPACE ( 11 )
223
224!
225!-- Read user-defined namelist
226    READ ( 11, dvrp_graphics_par )
227
[1484]228 20 CONTINUE
[1]229#endif
230
[60]231!
232!-- Try to find particles package
[1]233    REWIND ( 11 )
[1320]234    line = ' '
235    DO   WHILE ( INDEX( line, '&particles_par' ) == 0 )
[1484]236       READ ( 11, '(A)', END=30 )  line
[1]237    ENDDO
238    BACKSPACE ( 11 )
239
240!
241!-- Read user-defined namelist
242    READ ( 11, particles_par )
243
244!
245!-- Set flag that indicates that particles are switched on
246    particle_advection = .TRUE.
247
[1484]248 30 CONTINUE
[1]249
250    REWIND ( 11 )
[1320]251    line = ' '
252    DO   WHILE ( INDEX( line, '&spectra_par' ) == 0 )
[1484]253       READ ( 11, '(A)', END=40 )  line
[1]254    ENDDO
255    BACKSPACE ( 11 )
256
257!
258!-- Read user-defined namelist
259    READ ( 11, spectra_par )
260
261!
262!-- Default setting of dt_dosp here (instead of check_parameters), because its
263!-- current value is needed in init_pegrid
[1340]264    IF ( dt_dosp == 9999999.9_wp )  dt_dosp = dt_data_output
[1]265
[1484]266 40 CONTINUE
[1]267
[1496]268
269
270
[1]271 END SUBROUTINE package_parin
Note: See TracBrowser for help on using the repository browser.