Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29429 ディスカッション

forrtl:severe: Program Exceptin -stack overflow

bhseok
ビギナー
1,348件の閲覧回数
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 件の賞賛
1 解決策
Steven_L_Intel1
従業員
1,348件の閲覧回数
Fortran > Optimization> Heap Arrays. Set the value to 0.

元の投稿で解決策を見る

4 返答(返信)
abhimodak
新規コントリビューター I
1,348件の閲覧回数
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
bhseok
ビギナー
1,348件の閲覧回数
Could you tell me how to use /heap-arrays compliler switch in Microsoft Visual Studio 2005 environment? Thanks.
Steven_L_Intel1
従業員
1,349件の閲覧回数
Fortran > Optimization> Heap Arrays. Set the value to 0.
bhseok
ビギナー
1,348件の閲覧回数
Thank you so much.

返信