Commit 716e5fc2 authored by Juan Ignacio Polanco's avatar Juan Ignacio Polanco

Fix issue with collocation_points!()

parent 96620c31
......@@ -69,7 +69,11 @@ See [`collocation_points`](@ref) for details.
function collocation_points!(
x::AbstractVector, B::BSplineBasis;
method::SelectionMethod=AvgKnots())
checkdims(B, x)
N = length(B)
if N != length(x)
throw(ArgumentError(
"number of collocation points must match number of B-splines"))
end
collocation_points!(method, x, B)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment