Ignore:
Timestamp:
Mar 3, 2021 3:39:08 PM (4 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/diagnostic_output_quantities_mod.f90

    r4866 r4895  
    2424! -----------------
    2525! $Id$
     26! Remove offset in terrain-following masked output
     27!
     28! 4866 2021-02-05 17:50:14Z suehring
    2629! Implemented vertical passive scalar flux
    2730! Implemented air temperature as diagnostic output quantity (previous commit)
     
    16911694             DO  j = 1, mask_size_l(mid,2)
    16921695!
    1693 !--             Get k index of the highest terraing surface
     1696!--             Get k index of the lowest non-terrain grid point, else set fill value
    16941697                im = mask_i(mid,i)
    16951698                jm = mask_j(mid,j)
    16961699                ktt = MINLOC( MERGE( 1, 0, BTEST( wall_flags_total_0(:,jm,im), 5 ) ), DIM=1 ) - 1
    16971700                DO  k = 1, mask_size_l(mid,3)
    1698                    kk = MIN( ktt+mask_k(mid,k), nzt+1 )
     1701                   kk = MIN( ktt + mask_k(mid,k) - 1, nzt+1 )
    16991702!
    17001703!--                Set value if not in building
Note: See TracChangeset for help on using the changeset viewer.