Ignore:
Timestamp:
Nov 29, 2019 10:29:20 AM (4 years ago)
Author:
suehring
Message:

plant-canopy: Bugfix, plant canopy was still considered at building edges on for the u- and v-component; Relax restriction of LAD on building tops. LAD is only omitted at locations where building grid points emerged artificially by the topography filtering

File:
1 edited

Legend:

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

    r4294 r4314  
    2525! -----------------
    2626! $Id$
     27! Set additional topography flag 4 to mark topography grid points emerged
     28! from the filtering process.
     29!
     30! 4294 2019-11-13 18:34:16Z suehring
    2731! Bugfix, always set bit 5 and 6 of wall_flags, indicating terrain- and
    2832! building surfaces in all  cases, in order to enable terrain-following output
     
    16001604                      num_hole_l     = num_hole_l + 1
    16011605!
    1602 !--                   Clear flag 0 and set special flag ( bit 3) to indicate
     1606!--                   Clear flag 0 and set special flag ( bit 4) to indicate
    16031607!--                   that new topography point is a result of filtering process.
    16041608                      topo_3d(k,j,i) = IBCLR( topo_3d(k,j,i), 0 )
    1605                       topo_3d(k,j,i) = IBSET( topo_3d(k,j,i), 3 )
     1609                      topo_3d(k,j,i) = IBSET( topo_3d(k,j,i), 4 )
    16061610!
    16071611!--                   If filled grid point is occupied by a building, classify
     
    21802184          CALL exchange_horiz_int( topo, nys, nyn, nxl, nxr, nzt, nbgp )
    21812185!
    2182 !--       Set lateral boundary conditions for topography on all ghost layers         
     2186!--       Set lateral boundary conditions for topography on all ghost layers
    21832187          IF ( .NOT. bc_ns_cyc )  THEN
    21842188             IF ( nys == 0  )  THEN
     
    26012605    ENDDO
    26022606!
     2607!-- Set flag 4, indicating new topography grid points due to filtering.
     2608    DO i = nxl, nxr
     2609       DO j = nys, nyn
     2610          DO k = nzb, nzt+1
     2611             IF ( BTEST( topo(k,j,i), 4 ) )                                    &
     2612                wall_flags_0(k,j,i) = IBSET( wall_flags_0(k,j,i), 4 )
     2613          ENDDO
     2614       ENDDO
     2615    ENDDO
     2616!
    26032617!-- Exchange ghost points for wall flags
    26042618    CALL exchange_horiz_int( wall_flags_0, nys, nyn, nxl, nxr, nzt, nbgp )
Note: See TracChangeset for help on using the changeset viewer.