Changeset 4314 for palm/trunk/SOURCE/init_grid.f90
- Timestamp:
- Nov 29, 2019 10:29:20 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_grid.f90
r4294 r4314 25 25 ! ----------------- 26 26 ! $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 27 31 ! Bugfix, always set bit 5 and 6 of wall_flags, indicating terrain- and 28 32 ! building surfaces in all cases, in order to enable terrain-following output … … 1600 1604 num_hole_l = num_hole_l + 1 1601 1605 ! 1602 !-- Clear flag 0 and set special flag ( bit 3) to indicate1606 !-- Clear flag 0 and set special flag ( bit 4) to indicate 1603 1607 !-- that new topography point is a result of filtering process. 1604 1608 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 ) 1606 1610 ! 1607 1611 !-- If filled grid point is occupied by a building, classify … … 2180 2184 CALL exchange_horiz_int( topo, nys, nyn, nxl, nxr, nzt, nbgp ) 2181 2185 ! 2182 !-- Set lateral boundary conditions for topography on all ghost layers 2186 !-- Set lateral boundary conditions for topography on all ghost layers 2183 2187 IF ( .NOT. bc_ns_cyc ) THEN 2184 2188 IF ( nys == 0 ) THEN … … 2601 2605 ENDDO 2602 2606 ! 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 ! 2603 2617 !-- Exchange ghost points for wall flags 2604 2618 CALL exchange_horiz_int( wall_flags_0, nys, nyn, nxl, nxr, nzt, nbgp )
Note: See TracChangeset
for help on using the changeset viewer.