Changeset 116 for palm/trunk/SOURCE


Ignore:
Timestamp:
Oct 11, 2007 2:30:27 AM (17 years ago)
Author:
raasch
Message:

further preliminary updates concerning particle sorting and documentation

Location:
palm/trunk/SOURCE
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/CURRENT_MODIFICATIONS

    r114 r116  
    77(user_interface).
    88
    9 init_grid, init_pegrid, modules, user_interface
     9Frequence of sorting particles can be controlled with new particles_par
     10parameter dt_sort_particles. Sorting is moved from the SGS timestep loop in
     11advec_particles after the end of this loop.
     12
     13advec_particles, check_parameters, init_grid, init_pegrid, modules, package_parin, read_var_list, user_interface, write_var_list
    1014
    1115
  • palm/trunk/SOURCE/advec_particles.f90

    r114 r116  
    44! Actual revisions:
    55! -----------------
     6! Sorting of particles is controlled by dt_sort_particles and moved from
     7! the SGS timestep loop after the end of this loop.
    68! Bugfix: pleft/pright changed to pnorth/psouth in sendrecv of particle tail
    79! numbers along y
     
    32543256!    ENDDO
    32553257
    3256 !
    3257 !--    Sort particles in the sequence the gridboxes are stored in the memory
    3258        CALL sort_particles
    3259 
    32603258!    WRITE ( 9, * ) '*** advec_particles: ##9'
    32613259!    CALL local_flush( 9 )
     
    32863284
    32873285    ENDDO   ! timestep loop
     3286
     3287
     3288!
     3289!-- Sort particles in the sequence the gridboxes are stored in the memory
     3290    time_sort_particles = time_sort_particles + dt_3d
     3291    IF ( time_sort_particles >= dt_sort_particles )  THEN
     3292       CALL sort_particles
     3293       time_sort_particles = MOD( time_sort_particles, &
     3294                                  MAX( dt_sort_particles, dt_3d ) )
     3295    ENDIF
    32883296
    32893297
  • palm/trunk/SOURCE/check_parameters.f90

    r114 r116  
    44! Actual revisions:
    55! -----------------
    6 ! Multigrid solver allows topography
     6! Multigrid solver allows topography, checking of dt_sort_particles
    77!
    88! Former revisions:
     
    15001500
    15011501!
     1502!-- Check the interval for sorting particles.
     1503!-- Using particles as cloud droplets requires sorting after each timestep.
     1504    IF ( dt_sort_particles /= 0.0  .AND.  cloud_droplets )  THEN
     1505       dt_sort_particles = 0.0
     1506       IF ( myid == 0 )  THEN
     1507          PRINT*, '+++ WARNING: check_parameters:'
     1508          PRINT*, '    dt_sort_particles is reset to 0.0 because ', &
     1509                       'of cloud_droplets = .TRUE.'
     1510       ENDIF
     1511    ENDIF
     1512
     1513!
    15021514!-- Set the default intervals for data output, if necessary
    15031515!-- NOTE: dt_dosp has already been set in package_parin
  • palm/trunk/SOURCE/init_grid.f90

    r114 r116  
    789789!--       Bit 4:  wall to the left
    790790!--       Bit 5:  wall to the right
    791 !--       Bit 6:  inside / outside building (1/0)
     791!--       Bit 6:  inside building
    792792
    793793          flags = 0
  • palm/trunk/SOURCE/modules.f90

    r114 r116  
    55! Actual revisions:
    66! -----------------
    7 ! +flags, wall_flags_1..10
     7! +dt_sort_particles, time_sort_particles, flags, wall_flags_1..10
    88!
    99! Former revisions:
     
    876876    LOGICAL, DIMENSION(:), ALLOCATABLE ::  particle_mask, tail_mask
    877877
    878     REAL    ::  c_0 = 3.0, dt_min_part = 0.0002,                               &
     878    REAL    ::  c_0 = 3.0, dt_min_part = 0.0002, dt_sort_particles = 0.0,      &
    879879                dt_write_particle_data = 9999999.9, dvrp_psize = 9999999.9,    &
    880880                end_time_prel = 9999999.9, initial_weighting_factor = 1.0,     &
     
    883883                particle_advection_start = 0.0, sgs_wfu_part = 0.3333333,      &
    884884                sgs_wfv_part = 0.3333333, sgs_wfw_part = 0.3333333,            &
    885                 time_write_particle_data = 0.0
     885                time_sort_particles = 0.0, time_write_particle_data = 0.0
    886886
    887887    REAL, DIMENSION(max_number_of_particle_groups) ::  &
  • palm/trunk/SOURCE/package_parin.f90

    r77 r116  
    4545    NAMELIST /particles_par/      bc_par_b, bc_par_lr, bc_par_ns, bc_par_t,    &
    4646                                  density_ratio, radius, dt_dopts,             &
    47                                   dt_min_part, dt_prel,                        &
     47                                  dt_min_part, dt_prel, dt_sort_particles,     &
    4848                                  dt_write_particle_data, dvrp_psize,          &
    4949                                  end_time_prel, initial_weighting_factor,     &
  • palm/trunk/SOURCE/read_var_list.f90

    r110 r116  
    44! Actual revisions:
    55! -----------------
    6 !
     6! +time_sort_particles
    77!
    88! Former revisions:
     
    4646    USE indices
    4747    USE model_1d
     48    USE particle_attributes
    4849    USE pegrid
    4950    USE profil_parameter
     
    395396          CASE ( 'time_run_control' )
    396397             READ ( 13 )  time_run_control
     398          CASE ( 'time_sort_particles' )
     399             READ ( 13 )  time_sort_particles
    397400          CASE ( 'timestep_scheme' )
    398401             READ ( 13 )  timestep_scheme
  • palm/trunk/SOURCE/write_var_list.f90

    r110 r116  
    44! Actual revisions:
    55! -----------------
    6 !
     6! +time_sort_particles
    77!
    88! Former revisions:
     
    4646    USE indices
    4747    USE model_1d
     48    USE particle_attributes
    4849    USE pegrid
    4950    USE profil_parameter
     
    341342    WRITE ( 14 )  'time_run_control              '
    342343    WRITE ( 14 )  time_run_control
     344    WRITE ( 14 )  'time_sort_particles           '
     345    WRITE ( 14 )  time_sort_particles
    343346    WRITE ( 14 )  'timestep_scheme               '
    344347    WRITE ( 14 )  timestep_scheme
Note: See TracChangeset for help on using the changeset viewer.