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

Commit 2c946d5

Browse files
committed
scaling stencil by dx
1 parent 57d41a9 commit 2c946d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/derivative_operators/derivative_operator_functions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ 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
62+
Wdims[N] = sl ./ A.dx^A.derivative_order # this will change later
6363
W = zeros(Wdims...)
6464
Widx = Any[Wdims...]
6565
setindex!(Widx,:,N)

0 commit comments

Comments
 (0)