[MITgcm-support] Segmentation fault trying to capture location in ptracers array.

Martin Losch Martin.Losch at awi.de
Wed Jun 10 03:12:59 EDT 2015


Hi Jon,

generally I would use these flags for easier debugging with gfortran:

-g -fbounds-check -ffpe-trap=invalid,zero,overflow -finit-real=inf

You should then get more information as to where the model crashes. using gdb or the “print hallo”-debugger also helps (see Michael’s post).

M.


> On 10 Jun 2015, at 01:33, Jonathan Lauderdale <jml1 at mit.edu> wrote:
> 
> Thanks for your reply, I am using gfortran (gcc49 on an iMac 10.10) with -g and -C and that is all the output I get, but I will check for specific version flags, etc….
> 




More information about the MITgcm-support mailing list