#! /bin/csh -f
#
#$ -cwd
#$ -V
#$ -j y
#$ -o ml_HRCylinder.log
#$ -S /bin/csh
#
# Dummy CSH Matlab script
cd ../..
#EXAMPLES
if ($#argv<2) then
    echo 'Need to specify at least two matlab command'
else    
echo Starting $argv[1] with order $argv[2] using MATLAB	
        #test is the name of the MATLAB script, you'll have to change this name if your MATLAB script has a different name
matlab -nodesktop -r 'setupp, cd Cases/DOnumPap, CylinderRunScript('$argv[1]','$argv[2]')',exit
echo Executed $argv[1] with order $argv[2] using MATLAB	
endif