mirror of
https://github.com/Richard-Sti/csiborgtools.git
synced 2024-12-23 03:28:03 +00:00
24 lines
464 B
Bash
24 lines
464 B
Bash
|
memory=4
|
||
|
on_login=${1}
|
||
|
nthreads=${2}
|
||
|
queue="berg"
|
||
|
env="/mnt/users/rstiskalek/csiborgtools/venv_csiborg/bin/python"
|
||
|
file="flow_validation.py"
|
||
|
|
||
|
catalogue="A2"
|
||
|
simname="Carrick2015"
|
||
|
ksmooth=2
|
||
|
|
||
|
|
||
|
pythoncm="$env $file --catalogue $catalogue --simname $simname --ksmooth $ksmooth"
|
||
|
if [ $on_login -eq 1 ]; then
|
||
|
echo $pythoncm
|
||
|
$pythoncm
|
||
|
else
|
||
|
cm="addqueue -q $queue -n $nthreads -m $memory $pythoncm"
|
||
|
echo "Submitting:"
|
||
|
echo $cm
|
||
|
echo
|
||
|
eval $cm
|
||
|
fi
|