Fortran Scratch Files
Those that are opened like this:
open(...status='scratch'...)
1. |
Background |
A use had a Fortran programme which fellover unexpectedly with
No space on deviceyet there was masses of space in their home-directory.
2. |
Diagnostics |
A quick poke around the code found the use of Fortran "scratch" files. And a quick Google suggested that by default these go in /tmp. On the HPC cluster in question, this filesystem is only 1GB; clearly (local) /scratch is a better place.
3. |
The Fix |
#!/bin/bash #$ -cwd #$ -q serial.q /bin/hostname /bin/date export GFORTRAN_TMPDIR=/scratch ./myprog