pgfortran generate core dump

My code crashed after running for a while. Is it possible for pgfortran to create core dump file? If so, what is the compiler swtich? Thanks.

Core files are created if they are of a size smaller than what limit/ulimit
sets.

limit
on cshell

ulimit -a
on bash

may indicate a core file size of 0 bytes, meaning never create one.

limit coredumpsize unlimited
on cshell

ulimit -c unlimited
on bash.

and you should see them. Note that ‘unlimited’ is just a big number,
and it is possible to have corefiles larger - so you may need to set it to
a larger number than ‘unlimited’.

dave