This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cspline.c


Hi,

On my SGI, there's two illegal structure initialisations in cspline.c at
lines 137 and 216:

gsl_vector solution_vec = { sys_size, 1, interp->c + 1, 0 };

It's illegal because it should only be used with constants. Or sys_size
and interp->c are not constant expressions.
I replaced it by:

gsl_vector solution_vec;
solution_vec.size=sys_size;
solution_vec.stride=1;
solution_vec.data=interp->c + 1;
solution_vec.block=0;

And now it works fine :))

Thank you !
Bye.
Sylvain LEFEBVRE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]