Ignore:
Timestamp:
Sep 16, 2020 10:23:06 AM (4 years ago)
Author:
pavelkrc
Message:

Fix indexing of horizontal surfaces in indoor model

File:
1 edited

Legend:

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

    r4671 r4681  
    2525! -----------------
    2626! $Id$
     27! Bugfix for implementation of downward surfaces
     28!
     29! 4671 2020-09-09 20:27:58Z pavelkrc
    2730! Implementation of downward facing USM and LSM surfaces
    2831!
     
    180183       INTEGER(iwp) ::  ventilation_int_loads             !< [-] allocation of activity in the building
    181184
     185       INTEGER(iwp), DIMENSION(:), ALLOCATABLE ::  l_h            !< index array linking surface-element orientation index
     186                                                                  !< for horizontal surfaces with building
    182187       INTEGER(iwp), DIMENSION(:), ALLOCATABLE ::  l_v            !< index array linking surface-element orientation index
    183188                                                                  !< for vertical surfaces with building
     
    915920!--       required in case a building is located at the subdomain boundaries, where the building and
    916921!--       the corresponding surface elements are located on different subdomains.
     922          ALLOCATE( buildings(nb)%l_h(1:buildings(nb)%num_facades_per_building_h_l) )
    917923          ALLOCATE( buildings(nb)%m_h(1:buildings(nb)%num_facades_per_building_h_l) )
    918924
     
    957963
    958964          IF ( buildings(nb)%on_pe )  THEN
     965             buildings(nb)%l_h(n_fa(nb)) = l
    959966             buildings(nb)%m_h(n_fa(nb)) = m
    960967             n_fa(nb) = n_fa(nb) + 1
     
    12201227!
    12211228!--          Determine indices where corresponding surface-type information is stored.
    1222              l = buildings(nb)%l_v(fa)
    1223              m = buildings(nb)%m_v(fa)
     1229             l = buildings(nb)%l_h(fa)
     1230             m = buildings(nb)%m_h(fa)
    12241231!
    12251232!--          Determine building height level index.
     
    12331240                                            ( buildings(nb)%num_facades_per_building_h +           &
    12341241                                              buildings(nb)%num_facades_per_building_v )              !< [m2] area of total facade
    1235              window_area_per_facade       = surf_usm_h(l)%frac(m,ind_wat_win)  * facade_element_area     !< [m2] window area per facade
     1242             window_area_per_facade       = surf_usm_h(l)%frac(m,ind_wat_win)  * facade_element_area  !< [m2] window area per facade
    12361243                                                                                                      !< element
    12371244
Note: See TracChangeset for help on using the changeset viewer.