Changeset 4895 for palm/trunk/SOURCE/chemistry_model_mod.f90
- Timestamp:
- Mar 3, 2021 3:39:08 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/chemistry_model_mod.f90
r4887 r4895 26 26 ! ----------------- 27 27 ! $Id$ 28 ! Remove offset in terrain-following masked output 29 ! 30 ! 4887 2021-02-26 16:22:32Z banzhafs 28 31 ! Unnecessary comments removed 29 32 ! … … 1696 1699 INTEGER(iwp) :: k !< grid index along z-direction 1697 1700 INTEGER(iwp) :: kk !< masked output index along z-direction 1698 INTEGER(iwp) :: ktt !< k index of highest terrain surface1701 INTEGER(iwp) :: ktt !< k index of lowest non-terrain grid point 1699 1702 INTEGER(iwp) :: lsp 1700 1703 INTEGER(iwp) :: mid !< masked output running index … … 1732 1735 DO j = 1, mask_size_l(mid,2) 1733 1736 ! 1734 !-- Get k index of the highest terraing surface1737 !-- Get k index of the lowest non-terrain grid point 1735 1738 im = mask_i(mid,i) 1736 1739 jm = mask_j(mid,j) … … 1738 1741 DIM = 1 ) - 1 1739 1742 DO k = 1, mask_size_l(mid,3) 1740 kk = MIN( ktt +mask_k(mid,k), nzt+1 )1741 ! 1742 !-- Set value if not in building 1743 kk = MIN( ktt + mask_k(mid,k) - 1, nzt+1 ) 1744 ! 1745 !-- Set value if not in building, else set fill value 1743 1746 IF ( BTEST( wall_flags_total_0(kk,jm,im), 6 ) ) THEN 1744 1747 local_pf(i,j,k) = fill_value … … 1770 1773 DO j = 1, mask_size_l(mid,2) 1771 1774 ! 1772 !-- Get k index of the highest terraing surface1775 !-- Get k index of the lowest non-terrain grid point 1773 1776 im = mask_i(mid,i) 1774 1777 jm = mask_j(mid,j) … … 1776 1779 DIM = 1 ) - 1 1777 1780 DO k = 1, mask_size_l(mid,3) 1778 kk = MIN( ktt +mask_k(mid,k), nzt+1 )1779 ! 1780 !-- Set value if not in building 1781 kk = MIN( ktt + mask_k(mid,k) - 1, nzt+1 ) 1782 ! 1783 !-- Set value if not in building, else set fill value 1781 1784 IF ( BTEST( wall_flags_total_0(kk,jm,im), 6 ) ) THEN 1782 1785 local_pf(i,j,k) = fill_value
Note: See TracChangeset
for help on using the changeset viewer.