Computational Science Community Wiki

Using the GNU Fortran 90/95 Compiler on Mace01


No special configuration is necessary to use the GNU Fortran 90/95 compiler. To compile a source file hello.f90 into an executable binary, hello, enter

  gfortran hello.f90 -o hello

Submitting an Executable to the Batch System SGE

To submit the executable binary hello to the batch system, first create a qsub script (by using your favourite editor) like this


#$ -S /bin/bash
#$ -cwd
#$ -q serial.q 


and then, assuming your save the above script as hello.qsub, send the job to SGE by entering

   prompt> qsub hello.qsub