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