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 |
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.
|
Re: How to handle FORTRAN Error?
|
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. |
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..... |
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, |
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. |