2024-06-20 13:33:00 +00:00
|
|
|
nthreads=1
|
2024-09-21 16:16:32 +00:00
|
|
|
memory=48
|
2024-09-11 06:45:42 +00:00
|
|
|
on_login=${1}
|
2024-02-27 12:40:52 +00:00
|
|
|
queue="berg"
|
|
|
|
env="/mnt/users/rstiskalek/csiborgtools/venv_csiborg/bin/python"
|
|
|
|
file="field_los.py"
|
|
|
|
|
2024-03-08 10:44:19 +00:00
|
|
|
nsims="-1"
|
2024-09-11 06:45:42 +00:00
|
|
|
# These are only for CB
|
2024-02-27 12:40:52 +00:00
|
|
|
MAS="SPH"
|
|
|
|
grid=1024
|
|
|
|
|
|
|
|
|
2024-09-11 06:45:42 +00:00
|
|
|
if [ "$on_login" != "1" ] && [ "$on_login" != "0" ]
|
|
|
|
then
|
|
|
|
echo "'on_login' (1) must be either 0 or 1."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2024-09-25 13:30:06 +00:00
|
|
|
# for simname in "csiborg1" "csiborg2_main" "csiborg2X" "Lilow2024" "Carrick2015" "CF4" "manticore_2MPP_N128_DES_V1"; do
|
|
|
|
for simname in "CLONES"; do
|
2024-09-21 12:48:23 +00:00
|
|
|
for catalogue in "LOSS" "Foundation" "2MTF" "SFI_gals" "CF4_TFR"; do
|
2024-07-25 13:53:18 +00:00
|
|
|
pythoncm="$env $file --catalogue $catalogue --nsims $nsims --simname $simname --MAS $MAS --grid $grid"
|
|
|
|
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
|
2024-06-28 11:44:16 +00:00
|
|
|
|
2024-07-25 13:53:18 +00:00
|
|
|
sleep 0.05
|
|
|
|
done
|
2024-06-28 11:44:16 +00:00
|
|
|
done
|