Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29245 Discussions

forrtl:severe: Program Exceptin -stack overflow

bhseok
Beginner
905 Views
I am doing a computation by using Intel Fortran compiler 11.0. When Iused50 grids, my codeworked well.But if I used more than 70 grids, thenI got this stack overflow error. How can I resolve this problem?
0 Kudos
1 Solution
Steven_L_Intel1
Employee
905 Views
Fortran > Optimization> Heap Arrays. Set the value to 0.

View solution in original post

0 Kudos
4 Replies
abhimodak
New Contributor I
905 Views
You may have some "automatic arrays". These go on stack.

Try using /heap-arrays compiler switch.

Note that allocatable arrays will go on heap.


Abhi
0 Kudos
bhseok
Beginner
905 Views
Could you tell me how to use /heap-arrays compliler switch in Microsoft Visual Studio 2005 environment? Thanks.
0 Kudos
Steven_L_Intel1
Employee
906 Views
Fortran > Optimization> Heap Arrays. Set the value to 0.
0 Kudos
bhseok
Beginner
905 Views
Thank you so much.

0 Kudos
Reply