Mercurial > repos > public > sbplib_julia
diff src/RegionIndices/RegionIndices.jl @ 1677:51f0c5f895fb feature/grids/curvilinear
Merge default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sun, 30 Jun 2024 10:43:02 +0200 |
parents | 61aacc51d38a |
children | aba2ce166546 |
line wrap: on
line diff
--- a/src/RegionIndices/RegionIndices.jl Fri Jun 28 17:02:47 2024 +0200 +++ b/src/RegionIndices/RegionIndices.jl Sun Jun 30 10:43:02 2024 +0200 @@ -13,7 +13,7 @@ Index{R,T}(i::T) where {R<:Region,T<:Integer} = new{R,T}(i) Index{R}(i::T) where {R<:Region,T<:Integer} = new{R,T}(i) Index(i::T, ::Type{R}) where {R<:Region,T<:Integer} = Index{R,T}(i) - Index(t::Tuple{T, DataType}) where {R<:Region,T<:Integer} = Index{t[2],T}(t[1]) # TBD: This is not very specific in what types are allowed in t[2]. Can this be fixed? + Index(t::Tuple{T, DataType}) where T<:Integer = Index{t[2],T}(t[1]) # TBD: This is not very specific in what types are allowed in t[2]. Can this be fixed? end export Index