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

When running ROMS_Agrif ocean model..

Limou_Wu
Beginner
824 Views

My OS : Scientific Linux 6.3

After the job compiled, and built,

When running $>./roms roms.in

....

....

....

forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image              PC                Routine            Line        Source             
roms               00000000004E91B9  Unknown               Unknown  Unknown
roms               00000000004D0A7D  Unknown               Unknown  Unknown
roms               0000000000404F44  Unknown               Unknown  Unknown
roms               0000000000403D3C  Unknown               Unknown  Unknown
libc.so.6          0000003346A1ECDD  Unknown               Unknown  Unknown
roms               0000000000403C39  Unknown               Unknown  Unknown

Any advice?

Thanks a lot

0 Kudos
1 Reply
Anonymous66
Valued Contributor I
824 Views
A segmentation fault could be caused a number of different things. If the program has large arrays, try compiling with the option -heap-arrays. This will store arrays in heap memory rather than on the stack which is limited to 2 GB. I would also suggest, turning on runtime checking with -check all to isolate the issue. This will slow down your program considerably though, so do not leave it on in release mode.
0 Kudos
Reply