Mercurial > repos > public > sbplib_julia
diff diffOp.jl @ 43:ef060ab3b035
remove stride and remove some bugs
author | Ylva Rydin <ylva.rydin@telia.com> |
---|---|
date | Thu, 10 Jan 2019 16:30:54 +0100 |
parents | bb841977d198 |
children | be53b58581a6 |
line wrap: on
line diff
--- a/diffOp.jl Thu Jan 10 15:53:44 2019 +0100 +++ b/diffOp.jl Thu Jan 10 16:30:54 2019 +0100 @@ -30,11 +30,7 @@ # u = L*v function apply!(L::Laplace1D, u::AbstractVector, v::AbstractVector) - N = closureSize(L.op) - M = length(v) - - h = scaling(L.grid) - - apply!(L.op, u, v, grid.spacings(L.grid)[1], 1, L.grid.numberOfPointsPerDim, stride=1) + h = grid.spacings(L.grid)[1] + apply!(L.op, u, v, h) return nothing end