Skip to content

Commit

Permalink
Update grid_utils.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
simone-silvestri authored Jan 30, 2025
1 parent b682ddc commit 7179d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Grids/grid_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ parent_index_range(::Colon, loc, topo, halo) = Colon()
parent_index_range(::Base.Slice{<:IdOffsetRange}, loc, topo, halo) = Colon()
parent_index_range(view_indices::UnitRange, ::Nothing, ::Flat, halo) = view_indices
parent_index_range(view_indices::UnitRange, ::Nothing, ::AT, halo) = 1:1 # or Colon()
parent_index_range(view_indices::UnitRange, loc, topo, halo) = UnitRange(1, length(index))
parent_index_range(view_indices::UnitRange, loc, topo, halo) = UnitRange(1, length(view_indices))

# Return the index range of parent arrays that are themselves windowed
parent_index_range(::Colon, args...) = parent_index_range(args...)
Expand Down

0 comments on commit 7179d0d

Please sign in to comment.