Changeset 1822 for palm/trunk/SOURCE/lpm_boundary_conds.f90
- Timestamp:
- Apr 7, 2016 7:49:42 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/lpm_boundary_conds.f90
r1818 r1822 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! Tails removed. Unused variables removed. 22 22 ! 23 23 ! Former revisions: … … 75 75 76 76 USE control_parameters, & 77 ONLY: dz, message_string, particle_maximum_age , simulated_time77 ONLY: dz, message_string, particle_maximum_age 78 78 79 79 USE cpulog, & … … 89 89 90 90 USE particle_attributes, & 91 ONLY: deleted_particles, deleted_tails, ibc_par_b, ibc_par_t, & 92 number_of_particles, particles, & 93 particle_tail_coordinates, particle_type, offset_ocean_nzt_m1, & 94 tail_mask, use_particle_tails, use_sgs_for_particles 91 ONLY: deleted_particles, ibc_par_b, ibc_par_t, number_of_particles, & 92 particles, particle_type, offset_ocean_nzt_m1, & 93 use_sgs_for_particles 95 94 96 95 USE pegrid … … 119 118 INTEGER(iwp) :: k5 !< 120 119 INTEGER(iwp) :: n !< 121 INTEGER(iwp) :: nn !<122 120 INTEGER(iwp) :: t_index !< 123 121 INTEGER(iwp) :: t_index_number !< … … 150 148 DO n = 1, number_of_particles 151 149 152 nn = particles(n)%tail_id153 154 150 ! 155 151 !-- Stop if particles have moved further than the length of one … … 171 167 particles(n)%particle_mask = .FALSE. 172 168 deleted_particles = deleted_particles + 1 173 IF ( use_particle_tails .AND. nn /= 0 ) THEN174 tail_mask(nn) = .FALSE.175 deleted_tails = deleted_tails + 1176 ENDIF177 169 ENDIF 178 170 … … 183 175 particles(n)%particle_mask = .FALSE. 184 176 deleted_particles = deleted_particles + 1 185 IF ( use_particle_tails .AND. nn /= 0 ) THEN186 tail_mask(nn) = .FALSE.187 deleted_tails = deleted_tails + 1188 ENDIF189 177 ELSEIF ( ibc_par_t == 2 ) THEN 190 178 ! … … 196 184 particles(n)%rvar3 = -particles(n)%rvar3 197 185 ENDIF 198 IF ( use_particle_tails .AND. nn /= 0 ) THEN199 particle_tail_coordinates(1,3,nn) = 2.0_wp * zu(nz) - &200 particle_tail_coordinates(1,3,nn)201 ENDIF202 186 ENDIF 203 187 ENDIF … … 209 193 particles(n)%particle_mask = .FALSE. 210 194 deleted_particles = deleted_particles + 1 211 IF ( use_particle_tails .AND. nn /= 0 ) THEN212 tail_mask(nn) = .FALSE.213 deleted_tails = deleted_tails + 1214 ENDIF215 195 ELSEIF ( ibc_par_b == 2 ) THEN 216 196 ! … … 221 201 particles(n)%rvar3 < 0.0_wp ) THEN 222 202 particles(n)%rvar3 = -particles(n)%rvar3 223 ENDIF224 IF ( use_particle_tails .AND. nn /= 0 ) THEN225 particle_tail_coordinates(1,3,nn) = 2.0_wp * zu(nz) - &226 particle_tail_coordinates(1,3,nn)227 ENDIF228 IF ( use_particle_tails .AND. nn /= 0 ) THEN229 particle_tail_coordinates(1,3,nn) = 2.0_wp * zw(0) - &230 particle_tail_coordinates(1,3,nn)231 203 ENDIF 232 204 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.