 +###########################################################################
  # Don't change the following (but keep scrolling down!)
  ###########################################################################
-
+ 
 @@ -139,6 +156,8 @@
  export POSIXLY_CORRECT
  command=`basename $0`
-
+ 
 +##### Modified for Legion to remove reference to queues etc.
 +#
  usage ()

-bigmem.q:   This queue is like the verylong.q but has no memory limits.
-
 EOF

   exit 1
@@ -215,7 +216,8 @@
 # Note, we support openmp tasks even when Grid Engine is not in use.
 ###########################################################################

-omp_pe='openmp'
+# Set for Legion
+omp_pe='smp'

 ###########################################################################
 # The following sets up the default queue name, which you may want to
@@ -223,8 +225,8 @@
 ###########################################################################

 queue=long.q
-queueCmd=" -q long.q "
-mailto=`whoami`@fmrib.ox.ac.uk
+queueCmd=""                    # no user queues on Legion
+mailto=`whoami`@ucl.ac.uk      # changed for UCL
 MailOpts="a"


@@ -269,11 +271,13 @@
         exit 0
       fi
       shift;;

+                        smp for Legion.
                         <threads> specifies the number of threads to run
   -v                    Verbose mode.
 
-Queues:
-
-There are several batch queues configured on the cluster, each with defined CPU
