CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   How to handle FORTRAN Error? (https://www.cfd-online.com/Forums/main/7729-how-handle-fortran-error.html)

CFD Student June 23, 2004 13:48

How to handle FORTRAN Error?
 
Dear CFD people, I am trying to validate my laminar 2d finite volume -ROE FDS- solver using NACA0012. However, as I increased the number of grid point, I met the following error and couldn't fixed it. Can you please help me? Thanks. Regards.

Error I met:

forrtl: severe (170): Program Exception - stack overflow

agg June 23, 2004 14:49

Re: How to handle FORTRAN Error?
 
Try to create a 64 bit object file so as to increase the memory allocation for arrays. I use the -64 compiler option for f77 on an SGI machine.

Jarmo Monttinen June 23, 2004 18:32

Re: How to handle FORTRAN Error?
 
See the following discussion: http://www.cfd-online.com/Forum/main.cgi?read=31685

-- Jarmo

Steve June 24, 2004 08:04

Re: How to handle FORTRAN Error?
 
A stack overflow usually indicates that you have huge local arrays in a function or subroutine.

Try declaring your arrays as DATA or COMMON. This will take them off the stack.

CFD student June 26, 2004 12:03

Re: How to handle FORTRAN Error?
 
Thanks a lot for valuable suggestions.

I modified the stack size in the executable itself using EDITBIN, such as: editbin /stack:4000000 main.exe

It worked:)

Regards.....

John June 29, 2004 16:35

Re: How to handle FORTRAN Error?
 
I think you did this in linux based system. right?

Is it possible to do in Windows-based fortran compilers like Lahey-Fhjitsu or Digitial Visual Fortran as well?

Thanks,

CFD Student July 2, 2004 05:32

Re: How to handle FORTRAN Error?
 
I use "Compact Visual Fortran Standart Edition 6.5.0" and Windows XP. Regards.


All times are GMT -4. The time now is 17:25.