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

Commit ce1269e

Browse files
committed
fix missplaced stencil scaling
1 parent 2c946d5 commit ce1269e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/derivative_operators/derivative_operator_functions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ for MT in [2,3]
5959

6060
# Setup W, the kernel for NNlib.conv!
6161
Wdims = ones(Int64, ndims(_x_temp))
62-
Wdims[N] = sl ./ A.dx^A.derivative_order # this will change later
62+
Wdims[N] = sl
6363
W = zeros(Wdims...)
6464
Widx = Any[Wdims...]
6565
setindex!(Widx,:,N)
66-
W[Widx...] = s
66+
W[Widx...] = s ./ A.dx^A.derivative_order # this will change later
6767
cv = DenseConvDims(_M, W)
6868

6969
conv!(_x_temp, _M, W, cv)

0 commit comments

Comments
 (0)