Changeset 1822 for palm/trunk/SOURCE/lpm_pack_arrays.f90
- Timestamp:
- Apr 7, 2016 7:49:42 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/lpm_pack_arrays.f90
r1818 r1822 19 19 ! Current revisions: 20 20 ! ------------------ 21 ! 21 ! Tails removed. Unused variables removed. 22 22 ! 23 23 ! Former revisions: … … 51 51 ! Description: 52 52 ! ------------ 53 !> Pack particle a nd tail arrays, which means eliminate those elements marked for53 !> Pack particle arrays, which means eliminate those elements marked for 54 54 !> deletion and move data with higher index values to these free indices. 55 55 !> Determine the new number of particles. … … 59 59 60 60 USE particle_attributes, & 61 ONLY: deleted_tails, grid_particles, new_tail_id, & 62 number_of_particles, number_of_tails, offset_ocean_nzt, & 63 particles, particle_type, prt_count, & 64 particle_tail_coordinates, tail_mask, use_particle_tails 61 ONLY: grid_particles, number_of_particles, offset_ocean_nzt, & 62 particles, particle_type, prt_count 65 63 66 64 PRIVATE … … 127 125 128 126 INTEGER(iwp) :: n !< 129 INTEGER(iwp) :: nd !<130 127 INTEGER(iwp) :: nn !< 131 128 ! … … 158 155 number_of_particles = nn 159 156 160 !161 !-- particle tails are currently not available162 !163 !-- Handle tail array in the same way, store the new tail ids and re-assign it164 !-- to the respective particles165 ! IF ( use_particle_tails ) THEN166 !167 ! nn = 0168 ! nd = 0169 !170 ! DO n = 1, number_of_tails171 !172 ! IF ( tail_mask(n) ) THEN173 ! nn = nn + 1174 ! particle_tail_coordinates(:,:,nn) = &175 ! particle_tail_coordinates(:,:,n)176 ! new_tail_id(n) = nn177 ! ELSE178 ! nd = nd + 1179 ! ENDIF180 !181 ! ENDDO182 !183 ! DO n = 1, number_of_particles184 ! IF ( particles(n)%tail_id /= 0 ) THEN185 ! particles(n)%tail_id = new_tail_id(particles(n)%tail_id)186 ! ENDIF187 ! ENDDO188 !189 ! ENDIF190 191 !192 !-- The number of deleted tails has been determined in routines193 !-- lpm_boundary_conds and lpm_exchange_horiz194 ! number_of_tails = number_of_tails - deleted_tails195 196 197 157 END SUBROUTINE lpm_pack_arrays 198 158 … … 206 166 USE control_parameters, & 207 167 ONLY: dz 208 209 USE indices, &210 ONLY: nxl, nxr, nys, nyn, nzb, nzt211 168 212 169 USE kinds
Note: See TracChangeset
for help on using the changeset viewer.