From 00104ce95427049a79cc515b9c8050877434658b Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Thu, 12 Oct 2023 19:18:26 -0500 Subject: [PATCH] Correct `openmc.lib` wrapper for `evaluate_legendre`. (#2729) --- openmc/lib/math.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/lib/math.py b/openmc/lib/math.py index 0f61450bfd2..029f1c4c9ff 100644 --- a/openmc/lib/math.py +++ b/openmc/lib/math.py @@ -103,7 +103,7 @@ def evaluate_legendre(data, x): """ data_arr = np.array(data, dtype=np.float64) - return _dll.evaluate_legendre(len(data), + return _dll.evaluate_legendre(len(data)-1, data_arr.ctypes.data_as(POINTER(c_double)), x)