From 5b737a80a094eb7094343aa4ec890b49acd4252f Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Wed, 10 Jun 2009 08:57:57 +0000 Subject: check gsl version --- lib/Numeric/GSL/gsl-aux.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Numeric') diff --git a/lib/Numeric/GSL/gsl-aux.c b/lib/Numeric/GSL/gsl-aux.c index 0e2116c..b811ee4 100644 --- a/lib/Numeric/GSL/gsl-aux.c +++ b/lib/Numeric/GSL/gsl-aux.c @@ -390,7 +390,11 @@ int minimize(int method, double f(int, double*), double tolsize, int maxit, // Minimizer nmsimplex, without derivatives switch(method) { case 0 : {T = gsl_multimin_fminimizer_nmsimplex; break; } +#ifdef GSL110 + case 1 : {T = gsl_multimin_fminimizer_nmsimplex; break; } +#else case 1 : {T = gsl_multimin_fminimizer_nmsimplex2; break; } +#endif default: ERROR(BAD_CODE); } s = gsl_multimin_fminimizer_alloc (T, my_func.n); -- cgit v1.2.3