You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, that code incorrectly assumes that an indices of : means that the whole dimension should be filled. This is wrong for fields with Nothing locations, which have only 1 point in the Nothing direction, but can still have indices :.
But this is never used because of the incorrect assumption about the meaning of indices.
One possibility is to convert indices in Nothing directions to nothing. That would permit dispatching on the type of the indices like we're trying to do. Another possibility is to fix the logic here. Dispatch is annoying because loc is a tuple, but it can be done. A third possibility is just to avoid the symbol sizes :yz, xz and :xy. That last seems maybe like the best choice.
This bug would prevent anyone from using ImmersedBoundaryGrid. So I'm confused.
The text was updated successfully, but these errors were encountered:
To fill the halos of sliced fields we call
fill_halo_size
:Oceananigans.jl/src/BoundaryConditions/fill_halo_regions.jl
Lines 335 to 337 in 6b22a79
However, that code incorrectly assumes that an indices of
:
means that the whole dimension should be filled. This is wrong for fields withNothing
locations, which have only 1 point in theNothing
direction, but can still have indices:
.There is also logic for
Nothing
locations:Oceananigans.jl/src/BoundaryConditions/fill_halo_regions.jl
Lines 339 to 352 in 6b22a79
But this is never used because of the incorrect assumption about the meaning of indices.
One possibility is to convert indices in
Nothing
directions tonothing
. That would permit dispatching on the type of the indices like we're trying to do. Another possibility is to fix the logic here. Dispatch is annoying becauseloc
is a tuple, but it can be done. A third possibility is just to avoid the symbol sizes:yz
,xz
and:xy
. That last seems maybe like the best choice.This bug would prevent anyone from using
ImmersedBoundaryGrid
. So I'm confused.The text was updated successfully, but these errors were encountered: