Loading...
You are not logged-in Login/Register





  • Posts   Search Threads
  • bcrueyJuly 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)July 10, 2009 2:25 PM PDT
    Rate
     
    Re: Maximum size for arrays being passed to a subroutine??

    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.)


    Steve

    Attaching or including files in a post
    Doctor Fortran blog
    @DoctorFortran on Twitter

    bcrueyJuly 10, 2009 2:41 PM PDT
    Rate
     
    Re: Maximum size for arrays being passed to a subroutine??

    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)July 10, 2009 3:00 PM PDT
    Rate
     
    Re: Maximum size for arrays being passed to a subroutine??

    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).


    Steve

    Attaching or including files in a post
    Doctor Fortran blog
    @DoctorFortran on Twitter

Forum jump:  

Intel Software Network Forums Statistics

16,369 users have contributed to 46,341 threads and 163,954 posts to date.

In the past 24 hours, we have 18 new thread(s) 102 new posts(s), and 67 new user(s).

In the past 3 days, the most popular thread for everyone has been Formula for the intersection of straight lines The most posts were made to Take a look at John Burkhard&# The post with the most views is \"-check none\" generates error

Please welcome our newest member bikerepair8


For more complete information about compiler optimizations, see our Optimization Notice.