Changeset 2606 for palm/trunk/SOURCE/lpm_advec.f90
- Timestamp:
- Nov 10, 2017 10:36:31 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/lpm_advec.f90
r2417 r2606 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Changed particle box locations: center of particle box now coincides 28 ! with scalar grid point of same index. 29 ! Renamed module and subroutines: lpm_pack_arrays_mod -> lpm_pack_and_sort_mod 30 ! lpm_pack_all_arrays -> lpm_sort_in_subboxes, lpm_pack_arrays -> lpm_pack 31 ! lpm_sort -> lpm_sort_timeloop_done 32 ! 33 ! 2417 2017-09-06 15:22:27Z suehring 27 34 ! Particle loops adapted for sub-box structure, i.e. for each sub-box the 28 35 ! particle loop runs from start_index up to end_index instead from 1 to … … 273 280 274 281 DO nb = 0, 7 275 282 ! 283 !-- Interpolate u velocity-component 276 284 i = ip 277 285 j = jp + block_offset(nb)%j_off 278 286 k = kp + block_offset(nb)%k_off 279 ! 280 !-- Interpolate u velocity-component 287 281 288 DO n = start_index(nb), end_index(nb) 282 289 ! … … 289 296 !-- First, check if particle is located below first vertical grid level 290 297 !-- above topography (Prandtl-layer height) 291 ilog = ( particles(n)%x + 0.5_wp * dx )* ddx292 jlog = ( particles(n)%y + 0.5_wp * dy )* ddy298 ilog = particles(n)%x * ddx 299 jlog = particles(n)%y * ddy 293 300 ! 294 301 !-- Determine vertical index of topography top … … 378 385 379 386 ENDDO 380 387 ! 388 !-- Same procedure for interpolation of the v velocity-component 381 389 i = ip + block_offset(nb)%i_off 382 390 j = jp 383 391 k = kp + block_offset(nb)%k_off 384 ! 385 !-- Same procedure for interpolation of the v velocity-component 392 386 393 DO n = start_index(nb), end_index(nb) 387 394 388 ilog = ( particles(n)%x + 0.5_wp * dx )* ddx389 jlog = ( particles(n)%y + 0.5_wp * dy )* ddy395 ilog = particles(n)%x * ddx 396 jlog = particles(n)%y * ddy 390 397 ! 391 398 !-- Determine vertical index of topography top … … 474 481 475 482 ENDDO 476 483 ! 484 !-- Same procedure for interpolation of the w velocity-component 477 485 i = ip + block_offset(nb)%i_off 478 486 j = jp + block_offset(nb)%j_off 479 487 k = kp - 1 480 ! 481 !-- Same procedure for interpolation of the w velocity-component 488 482 489 DO n = start_index(nb), end_index(nb) 483 490 … … 660 667 i = particles(n)%x * ddx 661 668 j = particles(n)%y * ddy 662 k = ( zv(n) + 0.5_wp *dz * atmos_ocean_sign ) / dz &669 k = ( zv(n) + dz * atmos_ocean_sign ) / dz & 663 670 + offset_ocean_nzt ! only exact if eq.dist 664 671 !
Note: See TracChangeset
for help on using the changeset viewer.