From d9f1f584fdcc329b764f2697597bbf9c6eb392a7 Mon Sep 17 00:00:00 2001 From: Keita Nakamura Date: Sun, 11 Aug 2024 13:16:23 +0900 Subject: [PATCH] Fix specialization for WLS --- src/Interpolations/wls.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Interpolations/wls.jl b/src/Interpolations/wls.jl index e7d379cc..d65e787c 100644 --- a/src/Interpolations/wls.jl +++ b/src/Interpolations/wls.jl @@ -15,7 +15,7 @@ gridspan(wls::WLS) = gridspan(get_kernel(wls)) end # a bit faster implementation for B-splines -@inline function update_property!(mp::MPValue, it::WLS{<: Union{BSpline{Quadratic}, BSpline{Cubic}}}, pt, mesh::CartesianMesh, filter::AbstractArray{Bool} = Trues(size(mesh))) +@inline function update_property!(mp::MPValue, it::WLS{<: Union{BSpline{Quadratic}, BSpline{Cubic}}, <: Polynomial{Linear}}, pt, mesh::CartesianMesh, filter::AbstractArray{Bool} = Trues(size(mesh))) indices = neighboringnodes(mp) isnearbounds = size(mp.w) != size(indices) || !alltrue(filter, indices) if isnearbounds