|
[Sponsors] |
October 15, 2004, 08:25 |
Stack overflow
|
#1 |
Guest
Posts: n/a
|
Hi, everyone, Do you have some experience on handling the 'stack overflow' problems when runing a Fortran program? Please help me! Thanks a lot in advance.
|
|
October 15, 2004, 13:55 |
Re: Stack overflow
|
#2 |
Guest
Posts: n/a
|
Yes.
Solution depends on the operating system and compiler. If you share that info with us, I'm sure we have the solution for you. -- Jarmo |
|
October 15, 2004, 14:44 |
Re: Stack overflow
|
#3 |
Guest
Posts: n/a
|
If you are on linux/Unix, type
limit and look at the allowed stacksize. You may be able to increase it by typing limit stack unlimit If that does not increase it, you may have to get your administrator to allow a bigger value. |
|
October 15, 2004, 23:26 |
Re: Stack overflow
|
#4 |
Guest
Posts: n/a
|
one may use f77 -static ...
|
|
October 15, 2004, 23:41 |
Re: Stack overflow
|
#5 |
Guest
Posts: n/a
|
If the system is win2000 and the compiler is compaq visual fortran 6? The stack seems always not big enough.
|
|
October 16, 2004, 09:46 |
Re: Stack overflow
|
#6 |
Guest
Posts: n/a
|
Thank you all! The system I used is win2000 and the Fortran version is Visual Fortran 5.0. I used the Common sentence to transfer the data among main parogram and subroutines. I also tried to use the static sentence, but it seemed no much improvement. The computer in use is DELL precision 450 work station. It has a RAM of 1GB. Hope to get your further helps!!!!!!!!!!!
|
|
October 17, 2004, 15:03 |
Re: Stack overflow
|
#7 |
Guest
Posts: n/a
|
Put all your big data arrays into named common spaces
COMMON/DATA01/ARRAY1(... COMMON/DATA02/ARRAY2(... |
|
October 17, 2004, 15:30 |
Re: Stack overflow
|
#8 |
Guest
Posts: n/a
|
thank you, steve, Yes, what i have done is rightly as you advised.
|
|
October 18, 2004, 10:39 |
Re: Stack overflow
|
#9 |
Guest
Posts: n/a
|
Ming - Did that solve your problem or do you still have the stack overflow problem? Steve
|
|
October 18, 2004, 11:57 |
Re: Stack overflow
|
#10 |
Guest
Posts: n/a
|
no, this way doesn't work.
|
|
October 20, 2004, 15:02 |
Re: Stack overflow
|
#11 |
Guest
Posts: n/a
|
Let's try something else:
1. compile and build your code 2. go to the directory when the executable is (use command prompt) 3. type in : editbin /stack:"some very large number" 4. execute I'm not 100% sure of the command in step #3, but if you look up editbin or stack within VF, you should be able to find it. Hope this helps. -- Jarmo |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Stack Overflow | imrannazir | Main CFD Forum | 7 | July 9, 2011 02:53 |
Incineration Stack model | MLeong | CFX | 4 | September 3, 2009 07:26 |
Phase locked average in run time | panara | OpenFOAM | 2 | February 20, 2008 15:37 |
Stack Exhaust modelling | Bob | CFX | 0 | June 27, 2002 14:37 |
Stack frame size, Origin 2000, fortran, a question. | Sergei Chernyshenko | Main CFD Forum | 4 | February 22, 1999 15:24 |