[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Slow performance on linux - my error
From: |
Evan Thomas |
Subject: |
Slow performance on linux - my error |
Date: |
Thu, 25 Jul 1996 16:23:55 +1000 |
I have posted twice to this list with a problem where Octave under Linux
is unusably slow solving ODEs. (Once with an erroneous solution!) John
Eaton has solved this problem for me and I include part of his e-mail
below, for the list's interest.
Thanks to the people who helped me with this.
Evan.
John W. Eaton wrote:
> [cut]
> I tried your code on a Linux system and got similarly strange results.
> I noticed that the number of time that the function sEPSP was called
> varied from run to run, which seemed very odd. Then I tried it on an
> Alpha system and got a floating point exception (happening inside
> LSODE). In tracking that down, I found that your state vector s has 4
> elements, but you only use 3, and you only compute 3 derivatives.
> When I changed the line
>
> s = [0, 0, 0, 0];
>
> to be
>
> s = [0, 0, 0];
>
> I got consistent results.
>
> Obviously, Octave should check to make sure that the user-supplied
> function computes as many derivatives as there are states, so I've
> added some code to do that.
> [cut]
--
Evan Thomas
Department of Anatomy & Cell Biology
University of Melbourne
Parkville, 3052
ph: 9344-5849 fax: 9347-5219
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Slow performance on linux - my error,
Evan Thomas <=