Forum Jump

Select Group :
Select Forum :
Sorted By :
Sort Order :
From The :
 
Thread Tools  Search this thread 
bcruey
Total Points:
40
Registered User
July 10, 2009 2:12 PM PDT
Maximum size for arrays being passed to a subroutine??
I have .f90 code that compiled and worked wayback when when I wrote it two years ago. I made some adjustments to the code but only cosmetic adjustments. I have since moved to a new computer with a different ifort compiler and it still works as long as I keep my arrays below 136X136. I compiled the program with a traceback and it points to a line in my code where I am calling one of my subroutines.

The error code that I get is:

severe (170): Program Exception - Stack Overflow

Is there a maximum size for arrays that are being passed to a subroutine for Intel Visual Fortran 10.0?

Do you have any other suggestions for what the issue might be?


Steve Lionel (Intel)
Total Points:
114,605
Status Points:
114,605
Black Belt
July 10, 2009 2:25 PM PDT
Rate
 
#1
There is no maximum size, but you have not said what the error is.  Is it "stack overflow" by any chance?  If so, try adding the option /heap-arrays (if you're using Visual Studio, type this in under Command Line > Additional Options.)



bcruey
Total Points:
40
Registered User
July 10, 2009 2:41 PM PDT
Rate
 
#2 Reply to #1
There is no maximum size, but you have not said what the error is.  Is it "stack overflow" by any chance?  If so, try adding the option /heap-arrays (if you're using Visual Studio, type this in under Command Line > Additional Options.)

I tried typing in "/heap-arrays"  from the intel Fortran Compiler for applications running on IA-32 command prompt. I got a message back saying that "/heap-arrays" is not an internal or external command. Not sure what I am doing wrong.

Also these are Allocatable arrays. does that matter?


Steve Lionel (Intel)
Total Points:
114,605
Status Points:
114,605
Black Belt
July 10, 2009 3:00 PM PDT
Rate
 
#3 Reply to #2
Are you building from the command line?  If so, then add /heap-arrays as an option to the "ifort" command.  No, it does not matter if the arrays are allocatable.  Is the error a stack overflow?  Can you show me the declaration of the subroutine or function you're calling (include declarations of all its arguments).





Intel Software Network Forums Statistics

8445 users have contributed to 31553 threads and 100400 posts to date.
In the past 24 hours, we have 10 new thread(s) 32 new posts(s), and 42 new user(s).

In the past 3 days, the most popular thread for everyone has been Lost in MKL The most posts were made to TBB on linux segfaulting The post with the most views is Hi,if you were using imsl yo

Please welcome our newest member nonamez