CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

How to handle FORTRAN Error?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2004, 13:48
Default How to handle FORTRAN Error?
  #1
CFD Student
Guest
 
Posts: n/a
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
  Reply With Quote

Old   June 23, 2004, 14:49
Default Re: How to handle FORTRAN Error?
  #2
agg
Guest
 
Posts: n/a
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.
  Reply With Quote

Old   June 23, 2004, 18:32
Default Re: How to handle FORTRAN Error?
  #3
Jarmo Monttinen
Guest
 
Posts: n/a
See the following discussion: http://www.cfd-online.com/Forum/main.cgi?read=31685

-- Jarmo
  Reply With Quote

Old   June 24, 2004, 08:04
Default Re: How to handle FORTRAN Error?
  #4
Steve
Guest
 
Posts: n/a
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.
  Reply With Quote

Old   June 26, 2004, 12:03
Default Re: How to handle FORTRAN Error?
  #5
CFD student
Guest
 
Posts: n/a
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.....
  Reply With Quote

Old   June 29, 2004, 16:35
Default Re: How to handle FORTRAN Error?
  #6
John
Guest
 
Posts: n/a
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,
  Reply With Quote

Old   July 2, 2004, 05:32
Default Re: How to handle FORTRAN Error?
  #7
CFD Student
Guest
 
Posts: n/a
I use "Compact Visual Fortran Standart Edition 6.5.0" and Windows XP. Regards.
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
nonNewtonian viscosity model mhassani OpenFOAM Programming & Development 5 January 7, 2013 09:27
c++ libraries and solver compiling vaina74 OpenFOAM Installation 13 February 3, 2012 17:43
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25
compile errors of boundary condition "expDirectionMixed" liying02ts OpenFOAM Bugs 2 February 1, 2010 20:11
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19


All times are GMT -4. The time now is 19:28.