Skip to content

Commit

Permalink
Fix specialization for WLS
Browse files Browse the repository at this point in the history
  • Loading branch information
KeitaNakamura committed Aug 11, 2024
1 parent 5c524b3 commit d9f1f58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Interpolations/wls.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9f1f58

Please sign in to comment.