Necessity of vertically resolved mask versus horizontal mask & set_bottom_index #67
Replies: 3 comments 1 reply
-
In principle, FABM has enough information to skip all points below bottom if you provide the horizontal mask and the index of bottom points. However, I expect that this is not fully implemented (certainly not yet tested) in the case where the vectorized dimension is depth and masks are being used - SCHISM is the only model doing this. Thus, some tweaks in the FABM codebase are likely needed to support this. |
Beta Was this translation helpful? Give feedback.
-
I have two questions regarding this
|
Beta Was this translation helpful? Give feedback.
-
In the end, all that Regarding host access to the FABM preprocessor symbols: if you do an |
Beta Was this translation helpful? Give feedback.
-
In SCHISM (unstructured grid), we typically use a vertically resolved mask, to
ibottom(1:ne)
Case (1) is covered by using a horizontal mask, the question is whether we need case (2) when we also have set_bottom_index(ibottom). So does FABM implicitly mask everything with index < ibottom ? If that was the case, we could switch over to using FABM_HORIZONTAL_MASK.
But even if not, perhaps it makes make sense to still use FABM_HORIZONTAL_MASK and ignore that means that sub-seafloor elements are calculated; might that be more efficient than implementing a vertically resolved mask?
Beta Was this translation helpful? Give feedback.
All reactions