Mercurial > repos > public > sbplib_julia
changeset 110:ee071b8ed58c cell_based_test
Use deafult constructor for Index in apply!
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 08 Feb 2019 15:27:48 +0100 |
parents | b3fbef345810 |
children | 18b86c33b35a |
files | diffOp.jl |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/diffOp.jl Fri Feb 08 13:08:07 2019 +0100 +++ b/diffOp.jl Fri Feb 08 15:27:48 2019 +0100 @@ -66,7 +66,7 @@ @inline function apply!(D::DiffOpCartesian{2}, u::AbstractArray{T,2}, v::AbstractArray{T,2}, r1::Type{<:Region}, r2::Type{<:Region}, ri::CartesianIndices{2}) where T for I ∈ ri - @inbounds indextuple = (Index(I[1], r1), Index(I[2], r2)) + @inbounds indextuple = (Index{r1}(I[1]), Index{r2}(I[2])) @inbounds u[I] = apply(D, v, indextuple) end return nothing