summarylogtreecommitdiffstats
path: root/sundials4.patch
diff options
context:
space:
mode:
authorMichel Zou2019-01-08 19:34:11 +0100
committerMichel Zou2019-01-08 19:34:11 +0100
commit4a75591f31b4d04c24e2d23ff276ef1bdd3338b2 (patch)
tree85fcfb585086c88dd1ca123175bddd3c394450bd /sundials4.patch
parent4e155d7d2c6215da49a3b8a36542c04ec6b07d15 (diff)
downloadaur-4a75591f31b4d04c24e2d23ff276ef1bdd3338b2.tar.gz
3.0
Diffstat (limited to 'sundials4.patch')
-rw-r--r--sundials4.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/sundials4.patch b/sundials4.patch
new file mode 100644
index 000000000000..05a302cadae8
--- /dev/null
+++ b/sundials4.patch
@@ -0,0 +1,26 @@
+Index: src/lib/sundials_includes.pxd
+===================================================================
+--- src/lib/sundials_includes.pxd (revision 875)
++++ src/lib/sundials_includes.pxd (working copy)
+@@ -237,7 +237,7 @@
+
+
+ cdef extern from "cvodes/cvodes.h":
+- void* CVodeCreate(int lmm, int iter)
++ void* CVodeCreate(int lmm)
+ ctypedef int (*CVRhsFn)(realtype t, N_Vector y, N_Vector ydot, void *f_data)
+ int CVodeInit(void *cvode_mem, CVRhsFn f, realtype t0, N_Vector y0)
+ int CVodeReInit(void *cvode_mem, realtype t0, N_Vector y0)
+Index: src/solvers/sundials.pyx
+===================================================================
+--- src/solvers/sundials.pyx (revision 875)
++++ src/solvers/sundials.pyx (working copy)
+@@ -1699,7 +1699,7 @@
+ if self.cvode_mem == NULL: #The solver is not initialized
+
+ #Create the solver
+- self.cvode_mem= SUNDIALS.CVodeCreate(CV_BDF if self.options["discr"] == "BDF" else CV_ADAMS, CV_NEWTON if self.options["iter"] == "Newton" else CV_FUNCTIONAL)
++ self.cvode_mem= SUNDIALS.CVodeCreate(CV_BDF if self.options["discr"] == "BDF" else CV_ADAMS)
+ if self.cvode_mem == NULL:
+ raise CVodeError(CV_MEM_FAIL)
+