Author |
Message |
Topic: Stack overflow problem |
Mendo910603
Replies: 16
Views: 16724
|
Forum: Support Posted: Wed May 21, 2014 4:19 am Subject: |
Yes, "n" can be other than 4, but I'm using that value because I'm introducing 4 differential equations. |
Topic: Stack overflow problem |
Mendo910603
Replies: 16
Views: 16724
|
Forum: Support Posted: Tue May 20, 2014 3:26 am Subject: |
Thanks for your comments and your help  |
Topic: Stack overflow problem |
Mendo910603
Replies: 16
Views: 16724
|
Forum: Support Posted: Tue May 20, 2014 3:25 am Subject: |
km=k-1
err(km)=(errmax/SAFE1)**(1.0_sp/(2*km+1))
end if
if (k/=1 .and. (k>=kopt-1 .or. first)) then
if (errmax < 1.0) exit main_loop
... |
Topic: Stack overflow problem |
Mendo910603
Replies: 16
Views: 16724
|
Forum: Support Posted: Tue May 20, 2014 3:23 am Subject: |
Thanks John and Davidb for your comments. I followed what you've told me, and I could solve the problem, but it appeared another one related to a function declared in the nrutil file named assert_eq. ... |
Topic: Stack overflow problem |
Mendo910603
Replies: 16
Views: 16724
|
Forum: Support Posted: Thu May 15, 2014 3:42 am Subject: |
I had a look at the code you have posted and wonder how have you declared derivs as being an external function in PROGRAM Bulirsch_Stoer .
You appear to have declared it as such in subroutine bsste ... |
Topic: Stack overflow problem |
Mendo910603
Replies: 16
Views: 16724
|
Forum: Support Posted: Thu May 15, 2014 3:40 am Subject: |
The most often cause of stack overflow is large local arrays.
This can be overcome by transferring these arrays from the stack to other memory areas.
Options include:
a) declare arrays in common or ... |
Topic: Stack overflow problem |
Mendo910603
Replies: 16
Views: 16724
|
Forum: Support Posted: Mon May 12, 2014 7:47 pm Subject: Stack overflow problem |
Hi. I'm having troubles with my code. I'm using Numerical Recipes subroutines in my program but at the time of execute the program, I have the following error:
SALFORD RUN-TIME LIBRARY
Stack overf ... |
|