Mercurial > repos > public > sbplib_julia
diff src/Grids/grid.jl @ 1649:b02917bcd7d5 feature/grids/curvilinear
Merge default
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Wed, 26 Jun 2024 12:41:03 +0200 |
| parents | 9113f437431d 888e4092e2ed |
| children | 8250cf5a3ce9 51f0c5f895fb |
line wrap: on
line diff
--- a/src/Grids/grid.jl Wed Jun 26 11:09:25 2024 +0200 +++ b/src/Grids/grid.jl Wed Jun 26 12:41:03 2024 +0200 @@ -74,7 +74,7 @@ end end -Base.size(cv) = size(cv.v) +Base.size(cv::ArrayComponentView) = size(cv.v) Base.getindex(cv::ArrayComponentView, i::Int) = cv.v[i][cv.component_index...] Base.getindex(cv::ArrayComponentView, I::Vararg{Int}) = cv.v[I...][cv.component_index...] IndexStyle(::Type{<:ArrayComponentView{<:Any,<:Any,AT}}) where AT = IndexStyle(AT)
