diff options
author | Justin Lecher <jlec@gentoo.org> | 2016-02-20 16:29:17 +0100 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2016-02-20 16:39:18 +0100 |
commit | 585d5b592d35130304541dcd3d17f0f8714a8343 (patch) | |
tree | 3440958f45a71f5c6ff46bba3e5a656057017b87 /sci-libs/mathgl/files | |
parent | sci-libs/exodusii: Drop check for FORTRAN compiler if none is required (diff) | |
download | gentoo-585d5b592d35130304541dcd3d17f0f8714a8343.tar.gz gentoo-585d5b592d35130304541dcd3d17f0f8714a8343.tar.bz2 gentoo-585d5b592d35130304541dcd3d17f0f8714a8343.zip |
sci-libs/mathgl: Add compatibility patch for gsl API change
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=575158
Package-Manager: portage-2.2.27
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'sci-libs/mathgl/files')
-rw-r--r-- | sci-libs/mathgl/files/mathgl-2.3.3-gsl-2.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sci-libs/mathgl/files/mathgl-2.3.3-gsl-2.patch b/sci-libs/mathgl/files/mathgl-2.3.3-gsl-2.patch new file mode 100644 index 000000000000..6254321c59a2 --- /dev/null +++ b/sci-libs/mathgl/files/mathgl-2.3.3-gsl-2.patch @@ -0,0 +1,25 @@ + src/fit.cpp | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/fit.cpp b/src/fit.cpp +index 6a42a4b..d167022 100644 +--- a/src/fit.cpp ++++ b/src/fit.cpp +@@ -179,6 +179,7 @@ mreal MGL_NO_EXPORT mgl_fit_base(mglFitData &fd, mreal *ini) + const gsl_multifit_fdfsolver_type *T = gsl_multifit_fdfsolver_lmsder;
+ gsl_multifit_fdfsolver *s = gsl_multifit_fdfsolver_alloc(T, n, m);
+ gsl_multifit_function_fdf f;
++ gsl_matrix *J;
+ f.f = mgl_fit__f; f.df = mgl_fit__df;
+ f.fdf = mgl_fit__fdf; f.n = n; f.p = m;
+ f.params = &fd;
+@@ -193,7 +194,8 @@ mreal MGL_NO_EXPORT mgl_fit_base(mglFitData &fd, mreal *ini) + }
+ while ( status == GSL_CONTINUE && iter < 500 );
+ gsl_matrix *covar = gsl_matrix_alloc(m, m);
+- gsl_multifit_covar (s->J, 0.0, covar );
++ gsl_multifit_fdfsolver_jac (s, J);
++ gsl_multifit_covar (J, 0.0, covar);
+ mglFitCovar.Set(covar);
+ mreal res = gsl_blas_dnrm2(s->f);
+ for(i=0;i<m;i++) ini[i] = gsl_vector_get(s->x, i);
|