#!/bin/bash

#-------------------------------------------------------------------------------
#
# Batch options for Sun Grid Engine (Oracle Grid Engine, Open Grid Engine, ...)
# =================================
#
#$ -pe openmpi-ib 8
#$ -l h_rt=12:00:00
#
#$ -j y
#$ -N subchanneltest1
#
# -pe         : program_environment  min_slots[-max_slots]
# -l h_rt=    : wall clock time (hh:mm:ss)
# -q queue    : queue name
# -N name     : job name
# -o dir/file : redirect standard output
# -e dir/file : redirect standard error
# -j y        : to combine standard output and error
#
# Note that the program environment defined by the -pe option is site-specific;
# wildcards are allowed. "qconf -spl" will return a list of valid pe's.
#
#-------------------------------------------------------------------------------

# Change to submission directory
if test -n "$SGE_O_WORKDIR" ; then cd $SGE_O_WORKDIR ; fi

# Ensure the correct command is found:
export PATH=/usr/local/packages6/apps/gcc/4.4.7/code_saturne/4.0/bin:$PATH

# Run command:
\code_saturne run --param subchannel1.xml
