Mercurial > repos > public > sbplib_julia
diff src/Grids/grid.jl @ 1650:8250cf5a3ce9 feature/grids/manifolds
Merge feature/grids/curvilinear
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 26 Jun 2024 12:42:28 +0200 |
parents | e213bd857f3f b02917bcd7d5 |
children | 13a7a4ff49e3 |
line wrap: on
line diff
--- a/src/Grids/grid.jl Wed Jun 26 11:06:32 2024 +0200 +++ b/src/Grids/grid.jl Wed Jun 26 12:42:28 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)