Mercurial > repos > public > sbplib_julia
changeset 90:2882e1318cc3 patch_based_test
Add TODO:s on how to remove allocations in apply! for Laplace2d
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 25 Jan 2019 16:49:09 +0100 |
parents | c0729ade65da |
children | 074862bcd626 |
files | diffOp.jl |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/diffOp.jl Fri Jan 25 16:47:51 2019 +0100 +++ b/diffOp.jl Fri Jan 25 16:49:09 2019 +0100 @@ -58,6 +58,7 @@ # For each x + #TODO: Can remove temporary if we pass u and indices to apply! temp = zeros(eltype(u), n_y) for i ∈ 1:n_x @inbounds indices = uview(li,i,:) @@ -68,6 +69,7 @@ end # For each y + #TODO: Can remove temporary if we pass u and indices to apply! temp = zeros(eltype(u), n_x) for i ∈ 1:n_y @inbounds indices = uview(li,:,i)