|
[Sponsors] |
![]() |
![]() |
#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.
|
|
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
#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. |
|
![]() |
![]() |
![]() |
#4 |
Guest
Posts: n/a
|
one may use f77 -static ...
|
|
![]() |
![]() |
![]() |
#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.
|
|
![]() |
![]() |
![]() |
#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!!!!!!!!!!!
|
|
![]() |
![]() |
![]() |
#7 |
Guest
Posts: n/a
|
Put all your big data arrays into named common spaces
COMMON/DATA01/ARRAY1(... COMMON/DATA02/ARRAY2(... |
|
![]() |
![]() |
![]() |
#8 |
Guest
Posts: n/a
|
thank you, steve, Yes, what i have done is rightly as you advised.
|
|
![]() |
![]() |
![]() |
#9 |
Guest
Posts: n/a
|
Ming - Did that solve your problem or do you still have the stack overflow problem? Steve
|
|
![]() |
![]() |
![]() |
#10 |
Guest
Posts: n/a
|
no, this way doesn't work.
|
|
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Stack Overflow | imrannazir | Main CFD Forum | 7 | July 9, 2011 01:53 |
Incineration Stack model | MLeong | CFX | 4 | September 3, 2009 06:26 |
Phase locked average in run time | panara | OpenFOAM | 2 | February 20, 2008 14:37 |
Stack Exhaust modelling | Bob | CFX | 0 | June 27, 2002 13:37 |
Stack frame size, Origin 2000, fortran, a question. | Sergei Chernyshenko | Main CFD Forum | 4 | February 22, 1999 14:24 |