Changeset 229 for palm/trunk/SOURCE
- Timestamp:
- Feb 3, 2009 9:55:14 AM (16 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/CURRENT_MODIFICATIONS
r227 r229 10 10 ------ 11 11 12 Bugfix: several tail counters are initialized, particle_tail_coordinates is 13 only written to file if its third index is > 0, arrays for tails are allocated 14 with a minimum size of 10 tails if there is no tail initially (init_particles, 15 advec_particles) 16 -
palm/trunk/SOURCE/advec_particles.f90
r226 r229 4 4 ! Actual revisions: 5 5 ! ----------------- 6 ! Bugfix: several tail counters are initialized, particle_tail_coordinates is 7 ! only written to file if its third index is > 0 6 8 ! TEST: PRINT statements on unit 9 (commented out) 7 9 ! … … 159 161 WRITE ( 85 ) maximum_number_of_tailpoints, maximum_number_of_tails, & 160 162 number_of_tails 161 WRITE ( 85 ) particle_tail_coordinates 163 IF ( maximum_number_of_tails > 0 ) THEN 164 WRITE ( 85 ) particle_tail_coordinates 165 ENDIF 162 166 CALL close_file( 85 ) 163 167 … … 823 827 trrp_count_recv = 0 824 828 trsp_count_recv = 0 829 trlpt_count_recv = 0 830 trnpt_count_recv = 0 831 trrpt_count_recv = 0 832 trspt_count_recv = 0 825 833 IF ( use_particle_tails ) THEN 826 834 tail_mask = .TRUE. 827 deleted_tails = 0828 835 ENDIF 836 deleted_tails = 0 829 837 830 838 -
palm/trunk/SOURCE/init_particles.f90
r198 r229 4 4 ! Actual revisions: 5 5 ! ----------------- 6 ! 6 ! Bugfix: arrays for tails are allocated with a minimum size of 10 tails if 7 ! there is no tail initially 7 8 ! 8 9 ! Former revisions: … … 457 458 ENDDO 458 459 maximum_number_of_tails = factor * INT( value ) 460 ! 461 !-- Create a minimum number of tails in case that there is no tail 462 !-- initially (otherwise, index errors will occur when adressing the 463 !-- arrays below) 464 IF ( maximum_number_of_tails == 0 ) maximum_number_of_tails = 10 459 465 460 466 ALLOCATE( particle_tail_coordinates(maximum_number_of_tailpoints,5, &
Note: See TracChangeset
for help on using the changeset viewer.