Changeset 4114 for palm/trunk/SOURCE/lagrangian_particle_model_mod.f90
- Timestamp:
- Jul 23, 2019 2:09:27 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/lagrangian_particle_model_mod.f90
r4054 r4114 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Bugfix: Added working precision for if statement 28 ! 29 ! 4054 2019-06-27 07:42:18Z raasch 27 30 ! bugfix for calculating the minimum particle time step 28 31 ! … … 1338 1341 ! 1339 1342 !-- In case of stretching the actual k index is found iteratively 1340 IF ( dz_stretch_level .NE. -9999999.9 .OR. &1341 dz_stretch_level_start(1) .NE. -9999999.9 ) THEN1343 IF ( dz_stretch_level .NE. -9999999.9_wp .OR. & 1344 dz_stretch_level_start(1) .NE. -9999999.9_wp ) THEN 1342 1345 kp = MINLOC( ABS( tmp_particle%z - zu ), DIM = 1 ) - 1 1343 1346 ELSE … … 7352 7355 ! 7353 7356 !-- In case of stretching the actual k index must be found 7354 IF ( dz_stretch_level .NE. -9999999.9 .OR. &7355 dz_stretch_level_start(1) .NE. -9999999.9 ) THEN7357 IF ( dz_stretch_level .NE. -9999999.9_wp .OR. & 7358 dz_stretch_level_start(1) .NE. -9999999.9_wp ) THEN 7356 7359 kp = MINLOC( ABS( particle_array(n)%z - zu ), DIM = 1 ) - 1 7357 7360 ELSE … … 7523 7526 IF( zw(k) < particles_before_move(n)%z ) k = k + 1 7524 7527 IF( zw(k-1) > particles_before_move(n)%z ) k = k - 1 7525 7528 7526 7529 !-- For lpm_exchange_horiz to work properly particles need to be moved to the outermost gridboxes 7527 7530 !-- of the respective processor. If the particle index is inside the processor the following lines … … 7531 7534 j = MIN ( j , nyn ) 7532 7535 j = MAX ( j , nys ) 7533 7536 7534 7537 k = MIN ( k , nzt ) 7535 7538 k = MAX ( k , nzb+1 ) 7536 7539 7537 7540 ! 7538 7541 !-- Check, if particle has moved to another grid cell.
Note: See TracChangeset
for help on using the changeset viewer.