Changeset 3065 for palm/trunk/SOURCE/lpm_advec.f90
- Timestamp:
- Jun 12, 2018 7:03:02 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/lpm_advec.f90
r2969 r3065 25 25 ! ----------------- 26 26 ! $Id$ 27 ! dz values were replaced by dzw or dz(1) to allow for right vertical stretching 28 ! 29 ! 2969 2018-04-13 11:55:09Z thiele 27 30 ! Bugfix in Interpolation indices. 28 31 ! … … 158 161 159 162 USE arrays_3d, & 160 ONLY: de_dx, de_dy, de_dz, diss, e, km, u, v, w, zu, zw163 ONLY: de_dx, de_dy, de_dz, diss, dzw, e, km, u, v, w, zu, zw 161 164 162 165 USE cpulog … … 409 412 + ( gg-cc ) * u(k+1,j+1,i) + ( gg-dd ) * & 410 413 u(k+1,j+1,i+1) ) / ( 3.0_wp * gg ) - u_gtrans 411 u_int(n) = u_int_l + ( zv(n) - zu(k) ) / dz *&414 u_int(n) = u_int_l + ( zv(n) - zu(k) ) / dzw(k) * & 412 415 ( u_int_u - u_int_l ) 413 416 ENDIF … … 503 506 + ( gg-cc ) * v(k+1,j+1,i) + ( gg-dd ) * v(k+1,j+1,i+1) & 504 507 ) / ( 3.0_wp * gg ) - v_gtrans 505 v_int(n) = v_int_l + ( zv(n) - zu(k) ) / dz *&508 v_int(n) = v_int_l + ( zv(n) - zu(k) ) / dzw(k) * & 506 509 ( v_int_u - v_int_l ) 507 510 ENDIF … … 540 543 ( gg-dd ) * w(k+1,j+1,i+1) & 541 544 ) / ( 3.0_wp * gg ) 542 w_int(n) = w_int_l + ( zv(n) - zw(k) ) / dz *&545 w_int(n) = w_int_l + ( zv(n) - zw(k) ) / dzw(k) * & 543 546 ( w_int_u - w_int_l ) 544 547 ENDIF … … 611 614 ( gg - dd ) * e(k+1,j+1,i+1) & 612 615 ) / ( 3.0_wp * gg ) 613 e_int(n) = e_int_l + ( zv(n) - zu(k) ) / dz *&616 e_int(n) = e_int_l + ( zv(n) - zu(k) ) / dzw(k) * & 614 617 ( e_int_u - e_int_l ) 615 618 ENDIF … … 637 640 ( gg - dd ) * de_dx(k+1,j+1,i+1) & 638 641 ) / ( 3.0_wp * gg ) 639 de_dx_int(n) = de_dx_int_l + ( zv(n) - zu(k) ) / dz *&642 de_dx_int(n) = de_dx_int_l + ( zv(n) - zu(k) ) / dzw(k) * & 640 643 ( de_dx_int_u - de_dx_int_l ) 641 644 ENDIF … … 655 658 ( gg - dd ) * de_dy(k+1,j+1,i+1) & 656 659 ) / ( 3.0_wp * gg ) 657 de_dy_int(n) = de_dy_int_l + ( zv(n) - zu(k) ) / dz * &660 de_dy_int(n) = de_dy_int_l + ( zv(n) - zu(k) ) / dzw(k) * & 658 661 ( de_dy_int_u - de_dy_int_l ) 659 662 ENDIF … … 661 664 ! 662 665 !-- Interpolate the TKE gradient along z 663 IF ( zv(n) < 0.5_wp * dz ) THEN666 IF ( zv(n) < 0.5_wp * dz(1) ) THEN 664 667 de_dz_int(n) = 0.0_wp 665 668 ELSE … … 678 681 ( gg - dd ) * de_dz(k+1,j+1,i+1) & 679 682 ) / ( 3.0_wp * gg ) 680 de_dz_int(n) = de_dz_int_l + ( zv(n) - zu(k) ) / dz * &683 de_dz_int(n) = de_dz_int_l + ( zv(n) - zu(k) ) / dzw(k) * & 681 684 ( de_dz_int_u - de_dz_int_l ) 682 685 ENDIF … … 699 702 ( gg - dd ) * diss(k+1,j+1,i+1) & 700 703 ) / ( 3.0_wp * gg ) 701 diss_int(n) = diss_int_l + ( zv(n) - zu(k) ) / dz *&704 diss_int(n) = diss_int_l + ( zv(n) - zu(k) ) / dzw(k) * & 702 705 ( diss_int_u - diss_int_l ) 703 706 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.