mirror of
https://github.com/Richard-Sti/csiborgtools.git
synced 2024-12-22 17:28:02 +00:00
f7d16a9cd0
* Add draft of code * Update defaults * Update nb * Update nb * Update script * Update script * Update script * Indicate that not implemented
38 lines
950 B
Bash
Executable file
38 lines
950 B
Bash
Executable file
nthreads=1
|
|
memory=48
|
|
on_login=${1}
|
|
queue="berg"
|
|
env="/mnt/users/rstiskalek/csiborgtools/venv_csiborg/bin/python"
|
|
file="field_los.py"
|
|
|
|
nsims="-1"
|
|
# These are only for CB
|
|
MAS="SPH"
|
|
grid=1024
|
|
|
|
|
|
if [ "$on_login" != "1" ] && [ "$on_login" != "0" ]
|
|
then
|
|
echo "'on_login' (1) must be either 0 or 1."
|
|
exit 1
|
|
fi
|
|
|
|
|
|
# for simname in "csiborg1" "csiborg2_main" "csiborg2X" "Lilow2024" "Carrick2015" "CF4" "manticore_2MPP_N128_DES_V1"; do
|
|
for simname in "CLONES"; do
|
|
for catalogue in "LOSS" "Foundation" "2MTF" "SFI_gals" "CF4_TFR"; do
|
|
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
|
|
|
|
sleep 0.05
|
|
done
|
|
done
|