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