Ignore:
Timestamp:
Dec 10, 2019 3:46:36 PM (4 years ago)
Author:
motisi
Message:

Renamed wall_flags_0 to wall_flags_static_0

File:
1 edited

Legend:

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

    r4314 r4329  
    2727! -----------------
    2828! $Id$
     29! Renamed wall_flags_0 to wall_flags_static_0
     30!
     31! 4314 2019-11-29 10:29:20Z suehring
    2932! - Bugfix, plant canopy was still considered at building edges on for the u-
    3033!   and v-component.
     
    121124    USE indices,                                                               &
    122125        ONLY:  nbgp, nxl, nxlg, nxlu, nxr, nxrg, nyn, nyng, nys, nysg, nysv,   &
    123                nz, nzb, nzt, topo_top_ind, wall_flags_0
     126               nz, nzb, nzt, topo_top_ind, wall_flags_static_0
    124127
    125128    USE kinds
     
    11251128!--                   an informative message is given.
    11261129                      IF ( ANY( lad_s(:,j,i) /= 0.0_wp )  .AND.                &
    1127                            ANY( BTEST( wall_flags_0(:,j,i), 6 ) ) .AND.        &
    1128                            ANY( BTEST( wall_flags_0(:,j,i), 4 ) ) )  THEN
     1130                           ANY( BTEST( wall_flags_static_0(:,j,i), 6 ) ) .AND.        &
     1131                           ANY( BTEST( wall_flags_static_0(:,j,i), 4 ) ) )  THEN
    11291132                         lad_s(:,j,i) = 0.0_wp
    11301133                         WRITE( message_string, * )                            &
     
    19581961!--          of the potential rooftop grid point, while building_edge_e is
    19591962!--          is set from the perspective of the non-building grid point.
    1960              building_edge_w = ANY( BTEST( wall_flags_0(:,j,i),   6 ) )  .AND. &
    1961                          .NOT. ANY( BTEST( wall_flags_0(:,j,i-1), 6 ) )
    1962              building_edge_e = ANY( BTEST( wall_flags_0(:,j,i-1), 6 ) )  .AND. &
    1963                          .NOT. ANY( BTEST( wall_flags_0(:,j,i),   6 ) )
     1963             building_edge_w = ANY( BTEST( wall_flags_static_0(:,j,i),   6 ) )  .AND. &
     1964                         .NOT. ANY( BTEST( wall_flags_static_0(:,j,i-1), 6 ) )
     1965             building_edge_e = ANY( BTEST( wall_flags_static_0(:,j,i-1), 6 ) )  .AND. &
     1966                         .NOT. ANY( BTEST( wall_flags_static_0(:,j,i),   6 ) )
    19641967!
    19651968!--          Determine topography-top index on u-grid
     
    20382041!--          of the potential rooftop grid point, while building_edge_n is
    20392042!--          is set from the perspective of the non-building grid point.
    2040              building_edge_s = ANY( BTEST( wall_flags_0(:,j,i),   6 ) )  .AND. &
    2041                          .NOT. ANY( BTEST( wall_flags_0(:,j-1,i), 6 ) )
    2042              building_edge_n = ANY( BTEST( wall_flags_0(:,j-1,i), 6 ) )  .AND. &
    2043                          .NOT. ANY( BTEST( wall_flags_0(:,j,i),   6 ) )
     2043             building_edge_s = ANY( BTEST( wall_flags_static_0(:,j,i),   6 ) )  .AND. &
     2044                         .NOT. ANY( BTEST( wall_flags_static_0(:,j-1,i), 6 ) )
     2045             building_edge_n = ANY( BTEST( wall_flags_static_0(:,j-1,i), 6 ) )  .AND. &
     2046                         .NOT. ANY( BTEST( wall_flags_static_0(:,j,i),   6 ) )
    20442047!
    20452048!--          Determine topography-top index on v-grid
Note: See TracChangeset for help on using the changeset viewer.