From 87e00f76ed6fd30b0dc10e8c86daba1f4ff7dff5 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 29 Nov 2023 05:20:01 -0600 Subject: [PATCH] Add inline to openmc::interpolate (#2789) --- include/openmc/interpolate.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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