Changeset 4328 for palm/trunk/SOURCE/init_grid.f90
- Timestamp:
- Dec 9, 2019 6:53:04 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_grid.f90
r4314 r4328 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Minor change in nzb_max computation. Commentation added. 28 ! 29 ! 4314 2019-11-29 10:29:20Z suehring 27 30 ! Set additional topography flag 4 to mark topography grid points emerged 28 31 ! from the filtering process. … … 612 615 !-- Determine the maximum level of topography. It is used for 613 616 !-- steering the degradation of order of the applied advection scheme, 614 !-- as well in the lpm. 617 !-- as well in the lpm. 615 618 k_top = 0 616 619 DO i = nxl, nxr … … 622 625 ENDDO 623 626 #if defined( __parallel ) 624 CALL MPI_ALLREDUCE( k_top + 1, nzb_max, 1, MPI_INTEGER, & !is +1 really necessary here?627 CALL MPI_ALLREDUCE( k_top, nzb_max, 1, MPI_INTEGER, & 625 628 MPI_MAX, comm2d, ierr ) 626 629 #else 627 nzb_max = k_top + 1630 nzb_max = k_top 628 631 #endif 629 ! 630 !-- If topography extents up to the model top, limit nzb_max to nzt. 631 nzb_max = MIN( nzb_max, nzt ) 632 ! 633 !-- Increment nzb_max by 1 in order to allow for proper diverengence correction. 634 !-- Further, in case topography extents up to the model top, limit to nzt. 635 nzb_max = MIN( nzb_max+1, nzt ) 632 636 ! 633 637 !-- Determine minimum index of topography. Usually, this will be nzb. In case
Note: See TracChangeset
for help on using the changeset viewer.