Skip to content

Commit

Permalink
Correct openmc.lib wrapper for evaluate_legendre. (#2729)
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Oct 13, 2023
1 parent ca49d81 commit 00104ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmc/lib/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 00104ce

Please sign in to comment.