diff options
Diffstat (limited to 'lib/Numeric/GSL')
-rw-r--r-- | lib/Numeric/GSL/gsl-aux.c | 4 | ||||
-rw-r--r-- | lib/Numeric/GSL/gsl-ode.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/Numeric/GSL/gsl-aux.c b/lib/Numeric/GSL/gsl-aux.c index 1a4a3e6..410d157 100644 --- a/lib/Numeric/GSL/gsl-aux.c +++ b/lib/Numeric/GSL/gsl-aux.c | |||
@@ -810,7 +810,9 @@ int integrate_cquad(double f(double,void*), double a, double b, double aprec, do | |||
810 | gsl_function F; | 810 | gsl_function F; |
811 | F.function = f; | 811 | F.function = f; |
812 | F.params = NULL; | 812 | F.params = NULL; |
813 | int res = gsl_integration_cquad (&F, a, b, aprec, prec, wk, result, error, neval); | 813 | size_t * sneval = NULL; |
814 | int res = gsl_integration_cquad (&F, a, b, aprec, prec, wk, result, error, sneval); | ||
815 | *neval = *sneval; | ||
814 | CHECK(res,res); | 816 | CHECK(res,res); |
815 | gsl_integration_cquad_workspace_free (wk); | 817 | gsl_integration_cquad_workspace_free (wk); |
816 | OK | 818 | OK |
diff --git a/lib/Numeric/GSL/gsl-ode.c b/lib/Numeric/GSL/gsl-ode.c index 7386d10..3f2771b 100644 --- a/lib/Numeric/GSL/gsl-ode.c +++ b/lib/Numeric/GSL/gsl-ode.c | |||
@@ -148,7 +148,7 @@ int ode(int method, double h, double eps_abs, double eps_rel, | |||
148 | 148 | ||
149 | double* y = (double*)calloc(xin,sizeof(double)); | 149 | double* y = (double*)calloc(xin,sizeof(double)); |
150 | int i,j; | 150 | int i,j; |
151 | int status; | 151 | int status=0; |
152 | for(i=0; i< xin; i++) { | 152 | for(i=0; i< xin; i++) { |
153 | y[i] = xip[i]; | 153 | y[i] = xip[i]; |
154 | solp[i] = xip[i]; | 154 | solp[i] = xip[i]; |