-
-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy! in interpolation does not take into account scalars #903
Comments
A solution that works is doing what is done below for all other values: out .= u[k] |
Is this a DataInterpolations.jl issue? This is for DataInterpolations.LinearInterpolation? |
I would say no, I don't have it installed. I imported SciMLBase's |
Oh I see what you're saying. The inplace form of interpolation just cannot support scalars. That is just a fundamental Julia thing and cannot be solved by a package (nor does it really make sense? There is no preallocating for a scalar) |
Sorry, I improperly called them scalars. But they are in fact a 1D array with one element. The interpolation should work. And it does if you do not select a boundary value. If you select a boundary value it will use |
Describe the bug 🐞
This is because of the
copy!
when thetval
is the first one:SciMLBase.jl/src/interpolation.jl
Line 291 in eaebe6e
Expected behavior
Expected behavior is that it should be interpolated properly. I don't know if this is intended. It doesn't look like it to me. Cheers.
The text was updated successfully, but these errors were encountered: