Hi,
I've been stuck on a project for about 3 years and it has really stalled my hopes of becoming an adequate programmer. Any help would be so appreciated!
In short, when I have 33 variables y(1) through y(33) the code runs great. However, once I add in a 34th variable y(34) the code does something odd. I am using a runge-kutta method as 1 of 2 subroutines, which determines the size of time steps (= dt)for each step iteration. This time step becomes increasingly smaller for each time step causing the code to never finish.
It doesn't matter what the 34th variable is as I can set it to 0 and never use it.
I would be happy to condense and post the code if anyone feels it would help, but wanted to see if there was a general explanation first. I'm such a novice that I'm not sure what other info would be of use, so please let me know and I will gratefully post.
I posted this issue as well as the code on google groups a couple of years back but no one could offer an explanation!
I am using cygwin X on a Windows XP PC w/ a single 3GHz Intel pentium processor.
Thank you!
kbrownk
I've been stuck on a project for about 3 years and it has really stalled my hopes of becoming an adequate programmer. Any help would be so appreciated!
In short, when I have 33 variables y(1) through y(33) the code runs great. However, once I add in a 34th variable y(34) the code does something odd. I am using a runge-kutta method as 1 of 2 subroutines, which determines the size of time steps (= dt)for each step iteration. This time step becomes increasingly smaller for each time step causing the code to never finish.
It doesn't matter what the 34th variable is as I can set it to 0 and never use it.
I would be happy to condense and post the code if anyone feels it would help, but wanted to see if there was a general explanation first. I'm such a novice that I'm not sure what other info would be of use, so please let me know and I will gratefully post.
I posted this issue as well as the code on google groups a couple of years back but no one could offer an explanation!
I am using cygwin X on a Windows XP PC w/ a single 3GHz Intel pentium processor.
Thank you!
kbrownk