Skip to content

Commit

Permalink
cover cubic interpolation in 2d #3783
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed May 9, 2024
1 parent a889c76 commit 12b0094
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def test_interpolation_2d(self):
# linear
y_test = np.array([0.4, 0.6])
Y = (2 * x).sum(axis=1).reshape(*[len(el) for el in x_])
for interpolator in ["linear"]:
for interpolator in ["linear", "cubic"]:
interp = pybamm.Interpolant(x_, Y, y, interpolator=interpolator)
interp_casadi = interp.to_casadi(y=casadi_y)
f = casadi.Function("f", [casadi_y], [interp_casadi])
Expand Down

0 comments on commit 12b0094

Please sign in to comment.