Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
fix missplaced stencil scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
ajozefiak committed Jul 2, 2019
1 parent 2c946d5 commit ce1269e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/derivative_operators/derivative_operator_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ for MT in [2,3]

# Setup W, the kernel for NNlib.conv!
Wdims = ones(Int64, ndims(_x_temp))
Wdims[N] = sl ./ A.dx^A.derivative_order # this will change later
Wdims[N] = sl
W = zeros(Wdims...)
Widx = Any[Wdims...]
setindex!(Widx,:,N)
W[Widx...] = s
W[Widx...] = s ./ A.dx^A.derivative_order # this will change later
cv = DenseConvDims(_M, W)

conv!(_x_temp, _M, W, cv)
Expand Down

0 comments on commit ce1269e

Please sign in to comment.