Ignore:
Timestamp:
Mar 3, 2021 3:39:08 PM (3 years ago)
Author:
suehring
Message:

Remove offset in terrain-following masked output and allow only mask_k_over_surface >= 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/chemistry_model_mod.f90

    r4887 r4895  
    2626! -----------------
    2727! $Id$
     28! Remove offset in terrain-following masked output
     29!
     30! 4887 2021-02-26 16:22:32Z banzhafs
    2831! Unnecessary comments removed
    2932!
     
    16961699    INTEGER(iwp) ::  k               !< grid index along z-direction
    16971700    INTEGER(iwp) ::  kk              !< masked output index along z-direction
    1698     INTEGER(iwp) ::  ktt             !< k index of highest terrain surface
     1701    INTEGER(iwp) ::  ktt             !< k index of lowest non-terrain grid point
    16991702    INTEGER(iwp) ::  lsp
    17001703    INTEGER(iwp) ::  mid             !< masked output running index
     
    17321735                   DO  j = 1, mask_size_l(mid,2)
    17331736!
    1734 !--                   Get k index of the highest terraing surface
     1737!--                   Get k index of the lowest non-terrain grid point
    17351738                      im = mask_i(mid,i)
    17361739                      jm = mask_j(mid,j)
     
    17381741                                    DIM = 1 ) - 1
    17391742                      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
    17431746                         IF ( BTEST( wall_flags_total_0(kk,jm,im), 6 ) )  THEN
    17441747                            local_pf(i,j,k) = fill_value
     
    17701773                   DO  j = 1, mask_size_l(mid,2)
    17711774!
    1772 !--                   Get k index of the highest terraing surface
     1775!--                   Get k index of the lowest non-terrain grid point
    17731776                      im = mask_i(mid,i)
    17741777                      jm = mask_j(mid,j)
     
    17761779                                    DIM = 1 ) - 1
    17771780                      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
    17811784                         IF ( BTEST( wall_flags_total_0(kk,jm,im), 6 ) )  THEN
    17821785                            local_pf(i,j,k) = fill_value
Note: See TracChangeset for help on using the changeset viewer.