diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2022-02-27 10:50:12 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2022-02-27 22:29:03 -0600 |
commit | 250624dadd294669bf4d184be1294ed1dce2964f (patch) | |
tree | fe5881e9fac0454df70907b7cfbde91ad06de892 /academic/Kst/Kst_gsl2.patch | |
parent | a5e3e6b08e780afedfc64097de00eff635588074 (diff) | |
download | slackbuilds-250624dadd294669bf4d184be1294ed1dce2964f.tar.gz slackbuilds-250624dadd294669bf4d184be1294ed1dce2964f.tar.xz |
academic/Kst: Updated for version 20220116_2b8e03e.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to '')
-rw-r--r-- | academic/Kst/Kst_gsl2.patch | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/academic/Kst/Kst_gsl2.patch b/academic/Kst/Kst_gsl2.patch deleted file mode 100644 index 1a7db24321..0000000000 --- a/academic/Kst/Kst_gsl2.patch +++ /dev/null @@ -1,53 +0,0 @@ -diff -u -r Kst-2.0.8/src/plugins/fits/non_linear.h Kst-2.0.8-patched/src/plugins/fits/non_linear.h ---- Kst-2.0.8/src/plugins/fits/non_linear.h 2014-02-13 09:41:44.000000000 +0000 -+++ Kst-2.0.8-patched/src/plugins/fits/non_linear.h 2015-11-18 22:28:40.761417846 +0000 -@@ -18,6 +18,7 @@ - #include <gsl/gsl_blas.h> - #include <gsl/gsl_multifit_nlin.h> - #include <gsl/gsl_statistics.h> -+#include <gsl/gsl_version.h> - #include "common.h" - - struct data { -@@ -177,7 +178,15 @@ - } - iIterations++; - } while( iStatus == GSL_CONTINUE && iIterations < MAX_NUM_ITERATIONS ); -+ -+#if GSL_MAJOR_VERSION >=2 -+ gsl_matrix *J=gsl_matrix_alloc(pSolver->fdf->n, pSolver->fdf->p); -+ gsl_multifit_fdfsolver_jac (pSolver, J); -+ gsl_multifit_covar( J, 0.0, pMatrixCovariance ); -+ gsl_matrix_free(J); -+#else - gsl_multifit_covar( pSolver->J, 0.0, pMatrixCovariance ); -+#endif - - // - // determine the fitted values... -diff -u -r Kst-2.0.8/src/plugins/fits/non_linear_weighted.h Kst-2.0.8-patched/src/plugins/fits/non_linear_weighted.h ---- Kst-2.0.8/src/plugins/fits/non_linear_weighted.h 2014-02-13 09:41:44.000000000 +0000 -+++ Kst-2.0.8-patched/src/plugins/fits/non_linear_weighted.h 2015-11-18 22:28:44.004399807 +0000 -@@ -18,6 +18,7 @@ - #include <gsl/gsl_blas.h> - #include <gsl/gsl_multifit_nlin.h> - #include <gsl/gsl_statistics.h> -+#include <gsl/gsl_version.h> - #include "common.h" - - struct data { -@@ -193,7 +194,14 @@ - } - while( iStatus == GSL_CONTINUE && iIterations < MAX_NUM_ITERATIONS ); - -+#if GSL_MAJOR_VERSION >=2 -+ gsl_matrix *J=gsl_matrix_alloc(pSolver->fdf->n, pSolver->fdf->p); -+ gsl_multifit_fdfsolver_jac (pSolver, J); -+ gsl_multifit_covar( J, 0.0, pMatrixCovariance ); -+ gsl_matrix_free(J); -+#else - gsl_multifit_covar( pSolver->J, 0.0, pMatrixCovariance ); -+#endif - - // - // determine the fitted values... |