When running ROMS_Agrif ocean model..

When running ROMS_Agrif ocean model..

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

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

Leave a Comment

Please sign in to add a comment. Not a member? Join today