[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gsl] gsl newbie: GSL_EFAULT in
From: |
Farkas, Illes |
Subject: |
[Help-gsl] gsl newbie: GSL_EFAULT in |
Date: |
Mon, 28 Nov 2011 20:46:46 -0800 |
Dear GSL List,
Thanks to all for making the gsl library available to the public. I'm a
newbie to gsl. In my program gsl_odeiv2_evolve_apply returns GSL_EFAULT. I
use the rk2imp integration method with this line in my code:
gsl_odeiv2_step_type * stepType = gsl_odeiv2_step_rk2imp;
I assume that with this setting gsl_odeiv2_evolve_apply simply invokes the
function rk2imp (defined in the file "rk2imp.c"). Based on line 263 of
rk2imp.c I think that the above mentioned GSL_EFAULT return value is caused
by state->driver == NULL, where "state" is the first argument of
rk2imp_apply.
Do you think this conclusion is correct?
Do I need to define (or allocate memory to) this driver somewhere?
Or is this memory allocation problem a common newbie error?
Many-many thanks
Illes
--
http://hal.elte.hu/fij
- [Help-gsl] gsl newbie: GSL_EFAULT in,
Farkas, Illes <=