Commit 1a286d57 authored by Josh Vita's avatar Josh Vita
Browse files

Fix repeat of same bug

parent 24939878
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -186,7 +186,7 @@ protected:
           (b*b*b - b) * Y2[khi]) * (h*h) / 6.0;
#else
        // For a spline with regular grid, we directly calculate the interval X is in.
        int klo = (int)(x / h);
        int klo = (int)(x*(1/h));
        int khi = klo + 1;
        double a = Xs[khi] - x;
        double b = h - a;