-
Notifications
You must be signed in to change notification settings - Fork 0
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
Switch from Dierckx.jl to Interpolations.jl #43
Comments
Yes. I tried to fix it here some time ago: #39. But it didn't work. |
diagnostic_edmfx_trmm_box_0M.yml
cannot be run in Float32TRMM
does not preserve float time
TRMM
does not preserve float time
This is an upstream issue: kbarbary/Dierckx.jl#48 |
Is it fine to switch to linear interpolation? If yes, we can move to |
julia> x = Float32[1,2];
julia> z = Float32[1,2];
julia> Dierckx.Spline1D(z, x; k = 1)(Float32(2))
2.0 |
Perhaps we could switch to Interpolations.jl. Although: JuliaMath/Interpolations.jl#598 |
Also, it has quite a few dependencies: https://github.com/JuliaMath/Interpolations.jl/blob/master/Project.toml#L6-L17 |
I had actually thought about writing our own, e.g., |
Honestly, we could roll our own very simply interpolation package. Ah right: https://github.com/CliMA/SimpleInterpolations.jl. I just never got it off the ground |
We are already using It seems to be type-preserving:
|
Sure, switching to Interpolations is fine by me. Alternatively, we could wrap types to recover type stability in this package, which might be a quicker solution, but more of a bandaid. |
Should we rename the issue to "Switch from Dierckx.jl to Interpolations.jl"? |
Dierckx
does not preserve type kbarbary/Dierckx.jl#48 and it is not GPU compatible. It also has some loading costs that can be avoided.The text was updated successfully, but these errors were encountered: