bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gsl] ode-initval2 redundant user function calls


From: Tuomo Keskitalo
Subject: [Bug-gsl] ode-initval2 redundant user function calls
Date: Sat, 14 Jan 2012 17:29:46 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Thunderbird/3.1.16

Hi,

On 12/22/2011 09:55 PM, Farkas, Illes wrote:

One more question. According to test.out.txt the r.h.s. function is
accessed 3 or 2 times at each time point. Can this be reduced to accessing
only once (in order to speed up rk2imp) ?

I finally managed to look into this. I think the culprit is evolve_apply routine, which does not reuse derivative data from previous accepted step. The attached patch should remedy the situation, and yield some gain in efficiency. Thanks for the bug report!

Brian, could you please apply the patch, thanks!

--
address@hidden
http://iki.fi/tuomo.keskitalo

Attachment: odeiv2-evolve.bzr.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]