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