-
Notifications
You must be signed in to change notification settings - Fork 109
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
WIP features (so far: Flat BC, Constant extrap) #8
Conversation
I found a bug in my quadratic implementation that hopefully fixes this; the index was clamped by |
I just pushed a fix to master; now Interpolations doesn't either =) Well, at least not as weird. |
Yup, as I suspected: Grid implicitly uses a flat boundary condition for |
Nice! |
Very sweet! This is clearly coming along nicely. |
That's what happens when I suddenly have time to spend on this :) |
f5e19fc
to
c6ed132
Compare
WIP features (so far: Flat BC, Constant extrap)
Constant extrapolation, such that
itp[1-x] == itp[1]
anditp[n+x] == itp[n]
for anyx >= 0
(after interpolating a 1D array of lengthn
).Note that this doesn't necessarily mean that
itp[1] == A[1]
, since some boundary conditions invalidate that assumption; I figured it was better to enforce continuity at the domain edges: