This is the mail archive of the gsl-discuss@sourceware.org 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]

Re: Bug report and fix for adaptive step size control in ODE solving


Hi Jochen,

Jochen Küpper wrote:
However, why don't you test what you really describe your comment? This would look like the following (untested):

h0 = GSL_MAX_DBL(GSL_DBL_MIN, (t0 != t0+h0) ? h0 : GSL_DBL_EPSILON*t0);
Actually, I had been thinking of something like that first, but then I was afraid that an optimising compiler might transform 't0 != t0+h0' into '0 != h0', making the patch useless for the 'h0 < GSL_DBL_EPSILON*t0' problem.

Regards,
Frank


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