Changeset 1685 for palm/trunk/SOURCE/lpm_advec.f90
- Timestamp:
- Oct 8, 2015 7:32:13 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/lpm_advec.f90
r1683 r1685 19 19 ! Current revisions: 20 20 ! ------------------ 21 ! 22 ! 21 ! TKE check for negative values (so far, only zero value was checked) 22 ! offset_ocean_nzt_m1 removed 23 ! 23 24 ! Former revisions: 24 25 ! ----------------- … … 94 95 ONLY: block_offset, c_0, density_ratio, dt_min_part, grid_particles, & 95 96 iran_part, log_z_z0, number_of_particles, number_of_sublayers, & 96 particles, particle_groups, offset_ocean_nzt, 97 offset_ocean_nzt_m1, sgs_wfu_part, sgs_wfv_part, sgs_wfw_part,&98 use_sgs_for_particles,vertical_particle_advection, z0_av_global97 particles, particle_groups, offset_ocean_nzt, sgs_wfu_part, & 98 sgs_wfv_part, sgs_wfw_part, use_sgs_for_particles, & 99 vertical_particle_advection, z0_av_global 99 100 100 101 USE statistics, & … … 289 290 !-- Same procedure for interpolation of the v velocity-component 290 291 DO n = start_index(nb), end_index(nb) 292 291 293 IF ( prandtl_layer .AND. particles(n)%z < z_p ) THEN 292 294 … … 417 419 ENDIF 418 420 ! 419 !-- Needed to avoid NaN particle velocities 420 IF ( e_int(n) == 0.0_wp ) THEN 421 !-- Needed to avoid NaN particle velocities (this might not be 422 !-- required any more) 423 IF ( e_int(n) <= 0.0_wp ) THEN 421 424 e_int(n) = 1.0E-20_wp 422 425 ENDIF … … 671 674 ENDIF 672 675 ! 673 !-- Needed to avoid NaN particle velocities 674 IF ( e_int(n) == 0.0_wp ) THEN 676 !-- Needed to avoid NaN particle velocities (this might not be 677 !-- required any more) 678 IF ( e_int(n) <= 0.0_wp ) THEN 675 679 e_int(n) = 1.0E-20_wp 676 680 ENDIF … … 1134 1138 ENDIF 1135 1139 1136 ! kw = particles(n)%z / dz 1137 kw = kp-1 ! ok for ocean??? ( + offset_ocean_nzt_m1 ???) 1140 kw = kp - 1 1138 1141 1139 1142 IF ( k == 0 ) THEN
Note: See TracChangeset
for help on using the changeset viewer.