diff --git a/include/openmc/interpolate.h b/include/openmc/interpolate.h index e36fbb1d6..db501f71b 100644 --- a/include/openmc/interpolate.h +++ b/include/openmc/interpolate.h @@ -56,8 +56,9 @@ inline double interpolate_lagrangian(gsl::span xs, return output; } -double interpolate(gsl::span xs, gsl::span ys, - double x, Interpolation i = Interpolation::lin_lin) +inline double interpolate(gsl::span xs, + gsl::span ys, double x, + Interpolation i = Interpolation::lin_lin) { int idx = lower_bound_index(xs.begin(), xs.end(), x); @@ -95,4 +96,4 @@ double interpolate(gsl::span xs, gsl::span ys, } // namespace openmc -#endif \ No newline at end of file +#endif