Mercurial > repos > public > sbplib_julia
diff diffOp.jl @ 152:f54dd4408fa7 boundary_conditions
Merge with default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 15 Apr 2019 16:15:04 +0200 |
parents | e0c8f5cf3a3f c6aaf061c0a9 |
children | 754c36796ac8 |
line wrap: on
line diff
--- a/diffOp.jl Mon Feb 25 10:19:11 2019 -0800 +++ b/diffOp.jl Mon Apr 15 16:15:04 2019 +0200 @@ -82,10 +82,11 @@ using TiledIteration function apply_region_tiled!(D::DiffOpCartesian{2}, u::AbstractArray{T,2}, v::AbstractArray{T,2}, r1::Type{<:Region}, r2::Type{<:Region}) where T ri = regionindices(D.grid.size, closureSize(D.op), (r1,r2)) - for tileaxs ∈ TileIterator(axes(ri), padded_tilesize(T, (5,5), 2)) # TBD: Is this the right way, the right size? + # TODO: Pass Tilesize to function + for tileaxs ∈ TileIterator(axes(ri), padded_tilesize(T, (5,5), 2)) for j ∈ tileaxs[2], i ∈ tileaxs[1] I = ri[i,j] - u[i,j] = apply(D, v, (Index{r1}(I[1]), Index{r2}(I[2]))) + u[I] = apply(D, v, (Index{r1}(I[1]), Index{r2}(I[2]))) end end return nothing