1) Fixes to the allocation of cells when dealing with the wall function for the bottom edge of buildings. The 5th column of blocks is now called as this contains information on the lower vertical index of each block. This has limited application as in the majority of cases the starting position is kl = 0 and we do not have floating or overhanging blocks. But is applied in complex morphologies and ensures consistency in the code.
2) A fix for the u top edge east where index i was not being updated to ensure that that the wall function was applied on the east face of the wall. The new line ensures the i index is properly allocated. This is now consistent with similar lines such as under case(22).
These bugs were identified in #23 . wfmneutral is based upon wf_uno and that is why the same fixes are required in both. Following this pull request #23 can be closed as @ivosuter has confirmed that wfmneutral fixes that issue and has been checked for bugs.
1) Fixes to the allocation of cells when dealing with the wall function for the bottom edge of buildings. The 5th column of blocks is now called as this contains information on the lower vertical index of each block. This has limited application as in the majority of cases the starting position is
kl = 0
and we do not have floating or overhanging blocks. But is applied in complex morphologies and ensures consistency in the code.2) A fix for the u top edge east where index
i
was not being updated to ensure that that the wall function was applied on the east face of the wall. The new line ensures thei
index is properly allocated. This is now consistent with similar lines such as undercase(22)
.These bugs were identified in #23 .
wfmneutral
is based uponwf_uno
and that is why the same fixes are required in both. Following this pull request #23 can be closed as @ivosuter has confirmed thatwfmneutral
fixes that issue and has been checked for bugs.