Ignore:
Timestamp:
Mar 29, 2009 8:50:26 AM (15 years ago)
Author:
raasch
Message:

bugfix and change concerning particle advection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/init_particles.f90

    r274 r276  
    44! Current revisions:
    55! -----------------
    6 ! Output of messages replaced by message handling routine
     6! Maximum number of tails is calculated from maximum number of particles and
     7! skip_particles_for_tail,
     8! output of messages replaced by message handling routine
    79! Bugfix: arrays for tails are allocated with a minimum size of 10 tails if
    810! there is no tail initially
     
    442444       IF ( use_particle_tails )  THEN
    443445!
    444 !--       Choose the maximum number of tails significantly larger than the
    445 !--       one initially required
    446           factor = 10.0
    447           value  = number_of_tails
    448           DO WHILE ( value / 10.0 >= 1.0 )
    449              factor = factor * 10.0
    450              value  = value / 10.0
    451           ENDDO
    452           maximum_number_of_tails = factor * INT( value )
     446!--       Choose the maximum number of tails with respect to the maximum number
     447!--       of particles and skip_particles_for_tail
     448          maximum_number_of_tails = maximum_number_of_particles / &
     449                                    skip_particles_for_tail
     450
    453451!
    454452!--       Create a minimum number of tails in case that there is no tail
Note: See TracChangeset for help on using the changeset viewer.