ODE solver

Brian Gough bjg@network-theory.co.uk
Fri Oct 29 16:00:00 GMT 2004


Ivo Alxneit writes:
 > int
 > jac_without (double t, const double y[], double *dfdy, double dfdt[],
 >             void *params)
 > {
 >   dfdy = NULL;
 >   dfdt = NULL;
 >   return GSL_SUCCESS;
 > }
 > 
 > is jac_without correctly used?

Subtle error---the variables dfdy and dfdt are local, so get discarded
when the function exits.

What you want to do is set the jacobian function pointer itself to
NULL or put an abort() inside jac_without().

-- 
Brian Gough



More information about the Gsl-discuss mailing list