Convention for definition of Field
"halo points" is potentially confusing
#455
Labels
cleanup 🧹
Paying off technical debt
Field
"halo points" is potentially confusing
#455
Currently we use a convention for fields wherein the "halo points" of a field stored on faces actually includes locations that are on the boundary of our domain.
Is this strange? What I am saying, in other words, is that for the field
u = Field{Face, Cell, Cell}(arch, grid)
, the pointis defined as a "halo point", even though it is located on the right
x
boundary (it is inside the physical domain, not outside it).I think this is potentially odd and we should consider adopting the convention that
Face
fields include their boundary points by default. This would not change the algorithm; it only changes the user API.The reason why I recommend considering / discussing this change rather than immediately adopting it is because there are some downsides. One is a slight increase in memory allocation that is not needed. This is minor for large 3D problems but could be annoying for small 1D or 2D problems with "flat" dimensions.
This last problem can potentially be solved by invoking special behavior for the "flat" dimensions of a grid (see #330).
The text was updated successfully, but these errors were encountered: