Changeset 276 for palm/trunk/SOURCE/init_particles.f90
- Timestamp:
- Mar 29, 2009 8:50:26 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_particles.f90
r274 r276 4 4 ! Current revisions: 5 5 ! ----------------- 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 7 9 ! Bugfix: arrays for tails are allocated with a minimum size of 10 tails if 8 10 ! there is no tail initially … … 442 444 IF ( use_particle_tails ) THEN 443 445 ! 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 453 451 ! 454 452 !-- Create a minimum number of tails in case that there is no tail
Note: See TracChangeset
for help on using the changeset viewer.