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

Commit e6f468d

Browse files
committed
fix irregular grid concretization
1 parent 776dd31 commit e6f468d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/derivative_operators/concretization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function Base.copyto!(L::AbstractMatrix{T}, A::DerivativeOperator{T}, N::Int) wh
2828

2929
for i in bl+1:N-bl
3030
cur_coeff = get_coeff(i)
31-
stencil = eltype(A.stencil_coefs) <: AbstractVector ? A.stencil_coefs[i] : A.stencil_coefs
31+
stencil = eltype(A.stencil_coefs) <: AbstractVector ? A.stencil_coefs[i-bl] : A.stencil_coefs
3232
cur_stencil = use_winding(A) && cur_coeff < 0 ? reverse(stencil) : stencil
3333
L[i,i+1-stencil_pivot:i-stencil_pivot+stencil_length] = cur_coeff * cur_stencil
3434
end

0 commit comments

Comments
 (0)