Ignore:
Timestamp:
Dec 9, 2019 6:53:04 PM (4 years ago)
Author:
suehring
Message:

Minor change in nzb_max computation; commentation added; minor formatting adjustments in advec_ws

File:
1 edited

Legend:

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

    r4314 r4328  
    2525! -----------------
    2626! $Id$
     27! Minor change in nzb_max computation. Commentation added.
     28!
     29! 4314 2019-11-29 10:29:20Z suehring
    2730! Set additional topography flag 4 to mark topography grid points emerged
    2831! from the filtering process.
     
    612615!-- Determine the maximum level of topography. It is used for
    613616!-- steering the degradation of order of the applied advection scheme,
    614 !-- as well in the lpm. 
     617!-- as well in the lpm.
    615618    k_top = 0
    616619    DO  i = nxl, nxr
     
    622625    ENDDO
    623626#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,                        &
    625628                        MPI_MAX, comm2d, ierr )
    626629#else
    627     nzb_max = k_top + 1
     630    nzb_max = k_top
    628631#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 )
    632636!
    633637!-- Determine minimum index of topography. Usually, this will be nzb. In case
Note: See TracChangeset for help on using the changeset viewer.