Mercurial > repos > public > sbplib_julia
comparison src/RegionIndices/RegionIndices.jl @ 1760:aba2ce166546 feature/jet_aqua
Resolve unbound paramater in VolumeOperator
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 13 Sep 2024 14:32:05 +0200 |
parents | 61aacc51d38a |
children | 9a92e1b354a1 |
comparison
equal
deleted
inserted
replaced
1759:d28562d5ca8f | 1760:aba2ce166546 |
---|---|
34 | 34 |
35 function Index(i::Integer, boundary_width::Integer, dim_size::Integer) | 35 function Index(i::Integer, boundary_width::Integer, dim_size::Integer) |
36 return Index{getregion(i,boundary_width,dim_size)}(i) | 36 return Index{getregion(i,boundary_width,dim_size)}(i) |
37 end | 37 end |
38 | 38 |
39 IndexTuple(t::Vararg{Tuple{T, DataType}}) where T<:Integer = Index.(t) | 39 IndexTuple(t::Vararg{Tuple{Integer, DataType}}) = Index.(t) |
40 export IndexTuple | 40 export IndexTuple |
41 | 41 |
42 # TODO: Use the values of the region structs, e.g. Lower(), for the region parameter instead of the types. | 42 # TODO: Use the values of the region structs, e.g. Lower(), for the region parameter instead of the types. |
43 # For example the following works: | 43 # For example the following works: |
44 # (Lower(),Upper()) isa NTuple{2, Region} -> true | 44 # (Lower(),Upper()) isa NTuple{2, Region} -> true |