Other Stuff

UoM::RCS::Talby


Page Contents:


Page Group:

2010:

2009: 2008:


Related Pages:





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 device
yet 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