Skip to content

Commit

Permalink
Fix ignored noexcept
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed May 15, 2024
1 parent 15e47ce commit c560c9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/sundials_callbacks.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ cdef inline void arr2nv_inplace(x, N_Vector out) noexcept:
cdef void* data_ptr=PyArray_DATA(ndx)
memcpy((<N_VectorContent_Serial>out.content).data, data_ptr, n*sizeof(realtype))

cdef inline np.ndarray nv2arr(N_Vector v) noexcept:
cdef inline np.ndarray nv2arr(N_Vector v):
cdef long int n = (<N_VectorContent_Serial>v.content).length
cdef realtype* v_data = (<N_VectorContent_Serial>v.content).data
cdef np.ndarray[realtype, ndim=1, mode='c'] x=np.empty(n)
Expand All @@ -82,7 +82,7 @@ cdef inline void nv2mat_inplace(int Ns, N_Vector *v, np.ndarray o) noexcept:
for j in range(Nf):
o[j,i] = (<N_VectorContent_Serial>v[i].content).data[j]

cdef inline realtype2arr(realtype *data, int n) noexcept:
cdef inline realtype2arr(realtype *data, int n):
"""Create new numpy array from realtype*"""
cdef np.ndarray[realtype, ndim=1, mode='c'] x=np.empty(n)
memcpy(PyArray_DATA(x), data, n*sizeof(realtype))
Expand Down
2 changes: 1 addition & 1 deletion src/lib/sundials_includes.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ ELSE:
N_Vector tmp2, N_Vector tmp3) noexcept
int CVSlsSetSparseJacFn(void *cvode_mem, CVSlsSparseJacFn jac) noexcept
int CVSlsGetNumJacEvals(void *cvode_mem, long int *njevals) noexcept
cdef inline tuple version() noexcept: return (2,6,0)
cdef inline tuple version(): return (2,6,0)
IF SUNDIALS_WITH_SUPERLU:
cdef extern from "cvodes/cvodes_superlumt.h":
int CVSuperLUMT(void *cvode_mem, int numthreads, int n, int nnz) noexcept
Expand Down

0 comments on commit c560c9e

Please sign in to comment.