@@ -65,10 +65,10 @@ function convolve_interior!(x_temp::AbstractVector{T}, _x::BoundaryPaddedVector,
6565 x = _x. u
6666 mid = div (A. stencil_length,2 ) + 1
6767 # Just do the middle parts
68- for i in (1 + A. boundary_length ) : (length (x_temp)- A. boundary_length )
68+ for i in (1 + A. boundary_point_count ) : (length (x_temp)- A. boundary_point_count )
6969 xtempi = zero (T)
70- cur_stencil = eltype (stencil) <: AbstractVector ? stencil[i- A. boundary_length ] : stencil
71- cur_coeff = typeof (coeff) <: AbstractVector ? coeff[i- A. boundary_length ] : true
70+ cur_stencil = eltype (stencil) <: AbstractVector ? stencil[i- A. boundary_point_count ] : stencil
71+ cur_coeff = typeof (coeff) <: AbstractVector ? coeff[i- A. boundary_point_count ] : true
7272 cur_stencil = use_winding (A) && cur_coeff < 0 ? reverse (cur_stencil) : cur_stencil
7373 @inbounds for idx in 1 : A. stencil_length
7474 xtempi += cur_coeff * cur_stencil[idx] * x[i - (mid- idx) + 1 ]
8080function convolve_BC_left! (x_temp:: AbstractVector{T} , _x:: BoundaryPaddedVector , A:: DerivativeOperator ) where {T<: Real }
8181 stencil = A. low_boundary_coefs
8282 coeff = A. coefficients
83- for i in 1 : A. boundary_length
84- xtempi = stencil[i][1 ]* x . l
83+ for i in 1 : A. boundary_point_count
84+ xtempi = stencil[i][1 ]* _x . l
8585 cur_stencil = stencil[i]
86- cur_coeff = typeof (coeff) <: AbstractVector ? coeff[i- A. boundary_length ] : true
86+ cur_coeff = typeof (coeff) <: AbstractVector ? coeff[i- A. boundary_point_count ] : true
8787 cur_stencil = use_winding (A) && cur_coeff < 0 ? reverse (cur_stencil) : cur_stencil
8888 @inbounds for idx in 2 : A. stencil_length
89- xtempi += cur_coeff * cur_stencil[idx] * x . u[idx- 1 ]
89+ xtempi += cur_coeff * cur_stencil[idx] * _x . u[idx- 1 ]
9090 end
9191 x_temp[i] = xtempi
9292 end
9595function convolve_BC_right! (x_temp:: AbstractVector{T} , _x:: BoundaryPaddedVector , A:: DerivativeOperator ) where {T<: Real }
9696 stencil = A. low_boundary_coefs
9797 coeff = A. coefficients
98- bc_start = length (x . u) - A. stencil_length
99- for i in 1 : A. boundary_length
100- xtempi = stencil[i][end ]* x . r
98+ bc_start = length (_x . u) - A. stencil_length
99+ for i in 1 : A. boundary_point_count
100+ xtempi = stencil[i][end ]* _x . r
101101 cur_stencil = stencil[i]
102- cur_coeff = typeof (coeff) <: AbstractVector ? coeff[i- A. boundary_length ] : true
102+ cur_coeff = typeof (coeff) <: AbstractVector ? coeff[i- A. boundary_point_count ] : true
103103 cur_stencil = use_winding (A) && cur_coeff < 0 ? reverse (cur_stencil) : cur_stencil
104104 @inbounds for idx in A. stencil_length: - 1 : 2
105- xtempi += cur_coeff * cur_stencil[end - idx] * x . u[end - idx+ 1 ]
105+ xtempi += cur_coeff * cur_stencil[end - idx] * _x . u[end - idx+ 1 ]
106106 end
107107 x_temp[i] = xtempi
108108 end
0 commit comments