Changeset 3182 for palm/trunk/SOURCE/init_grid.f90
- Timestamp:
- Jul 27, 2018 1:36:03 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_grid.f90
r3142 r3182 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! Rename variables in mesoscale-offline nesting mode 23 23 ! 24 24 ! Former revisions: … … 342 342 343 343 USE control_parameters, & 344 ONLY: bc_lr_cyc, bc_ns_cyc, building_height, building_length_x, & 344 ONLY: bc_dirichlet_l, bc_dirichlet_n, bc_dirichlet_r, & 345 bc_dirichlet_s, bc_lr_cyc, bc_ns_cyc, bc_radiation_l, & 346 bc_radiation_n, bc_radiation_r, bc_radiation_s, & 347 building_height, building_length_x, & 345 348 building_length_y, building_wall_left, building_wall_south, & 346 349 canyon_height, canyon_wall_left, canyon_wall_south, & … … 350 353 dz_stretch_level_end_index, dz_stretch_level_start_index, & 351 354 dz_stretch_level_start, grid_level, & 352 force_bound_l, force_bound_r, force_bound_n, force_bound_s, & 353 ibc_uv_b, inflow_l, inflow_n, inflow_r, inflow_s, & 354 masking_method, maximum_grid_level, message_string, & 355 momentum_advec, nest_domain, nest_bound_l, & 356 nest_bound_n, nest_bound_r, nest_bound_s, & 357 number_stretch_level_end, number_stretch_level_start, ocean, & 358 outflow_l, outflow_n, outflow_r, outflow_s, psolver, & 359 scalar_advec, topography, topography_grid_convention, & 360 tunnel_height, tunnel_length, tunnel_width_x, tunnel_width_y, & 355 ibc_uv_b, masking_method, maximum_grid_level, message_string, & 356 momentum_advec, number_stretch_level_end, & 357 number_stretch_level_start,ocean, psolver, scalar_advec, & 358 topography, topography_grid_convention, tunnel_height, & 359 tunnel_length, tunnel_width_x, tunnel_width_y, & 361 360 tunnel_wall_depth, use_surface_fluxes, use_top_fluxes, & 362 361 wall_adjustment_factor … … 386 385 IMPLICIT NONE 387 386 388 INTEGER(iwp) :: i !< index variable along x 389 INTEGER(iwp) :: j !< index variable along y 390 INTEGER(iwp) :: k !< index variable along z 391 INTEGER(iwp) :: k_top !< topography top index on local PE 392 INTEGER(iwp) :: n !< loop variable for stretching 393 INTEGER(iwp) :: number_dz !< number of user-specified dz values 394 INTEGER(iwp) :: nzb_local_max !< vertical grid index of maximum topography height 395 INTEGER(iwp) :: nzb_local_min !< vertical grid index of minimum topography height 387 INTEGER(iwp) :: i !< index variable along x 388 INTEGER(iwp) :: j !< index variable along y 389 INTEGER(iwp) :: k !< index variable along z 390 INTEGER(iwp) :: k_top !< topography top index on local PE 391 INTEGER(iwp) :: l !< loop variable 392 INTEGER(iwp) :: n !< loop variable for stretching 393 INTEGER(iwp) :: number_dz !< number of user-specified dz values 394 INTEGER(iwp) :: nzb_local_max !< vertical grid index of maximum topography height 395 INTEGER(iwp) :: nzb_local_min !< vertical grid index of minimum topography height 396 396 397 397 INTEGER(iwp), DIMENSION(:,:), ALLOCATABLE :: nzb_local !< index for topography top at cell-center … … 834 834 nzb_max = k_top + 1 835 835 #endif 836 IF ( inflow_l .OR. outflow_l .OR. force_bound_l .OR. nest_bound_l .OR.&837 inflow_r .OR. outflow_r .OR. force_bound_r .OR. nest_bound_r .OR.&838 inflow_n .OR. outflow_n .OR. force_bound_n .OR. nest_bound_n .OR.&839 inflow_s .OR. outflow_s .OR. force_bound_s .OR. nest_bound_s )&836 IF ( bc_dirichlet_l .OR. bc_radiation_l .OR. & 837 bc_dirichlet_r .OR. bc_radiation_r .OR. & 838 bc_dirichlet_n .OR. bc_radiation_n .OR. & 839 bc_dirichlet_s .OR. bc_radiation_s ) & 840 840 nzb_max = nzt 841 841 ! 842 842 !-- Finally, if topography extents up to the model top, limit nzb_max to nzt. 843 nzb_max = MIN( nzb_max, nzt ) 843 nzb_max = MIN( nzb_max, nzt ) 844 844 ! 845 845 !-- Determine minimum index of topography. Usually, this will be nzb. In case … … 857 857 !-- Initialize boundary conditions via surface type 858 858 CALL init_bc 859 859 860 ! 860 861 !-- Allocate and set topography height arrays required for data output … … 926 927 #if defined( __parallel ) 927 928 CALL MPI_ALLREDUCE( MAXVAL( get_topography_top_index( 's' ) ), & 928 nzb_local_max, 1, MPI_INTEGER, MPI_MAX, comm2d, ierr ) 929 nzb_local_max, 1, MPI_INTEGER, MPI_MAX, comm2d, ierr ) 929 930 #else 930 931 nzb_local_max = MAXVAL( get_topography_top_index( 's' ) )
Note: See TracChangeset
for help on using the changeset viewer.