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
may indicate a core file size of 0 bytes, meaning never create one.
limit coredumpsize unlimited
ulimit -c unlimited
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’.