mirror of
https://github.com/Richard-Sti/csiborgtools.git
synced 2025-04-19 06:40:54 +00:00
Update script
This commit is contained in:
parent
3464c6eb6d
commit
c70d0479c6
1 changed files with 38 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
nthreads=28
|
nthreads=12
|
||||||
memory=7
|
memory=7
|
||||||
on_login=${1}
|
on_login=${1}
|
||||||
queue="berg"
|
queue="berg"
|
||||||
|
@ -11,9 +11,10 @@ resolution=1024
|
||||||
SPH_executable="/mnt/users/rstiskalek/cosmotool/bld/sample/simple3DFilter"
|
SPH_executable="/mnt/users/rstiskalek/cosmotool/bld/sample/simple3DFilter"
|
||||||
scratch_space="/mnt/extraspace/rstiskalek/dump/"
|
scratch_space="/mnt/extraspace/rstiskalek/dump/"
|
||||||
|
|
||||||
snapshot_kind="gadget2"
|
# CLONES settings
|
||||||
snapshot_path="/mnt/extraspace/rstiskalek/CLONES/s8/cf2gvpecc1pt5elmo73_sig6distribsbvoldi_RZA3Derrv2_512_500_ss8_zinit60_000"
|
# snapshot_kind="gadget2"
|
||||||
output_path="/mnt/extraspace/rstiskalek/CLONES/s8/cf2gvpecc1pt5elmo73_sig6distribsbvoldi_RZA3Derrv2_512_500_ss8_zinit60_000.hdf5"
|
# snapshot_path="/mnt/extraspace/rstiskalek/CLONES/s8/cf2gvpecc1pt5elmo73_sig6distribsbvoldi_RZA3Derrv2_512_500_ss8_zinit60_000"
|
||||||
|
# output_path="/mnt/extraspace/rstiskalek/CLONES/s8/cf2gvpecc1pt5elmo73_sig6distribsbvoldi_RZA3Derrv2_512_500_ss8_zinit60_000.hdf5"
|
||||||
|
|
||||||
|
|
||||||
# Check if `on_login` is either 0 or 1
|
# Check if `on_login` is either 0 or 1
|
||||||
|
@ -26,14 +27,36 @@ fi
|
||||||
export OMP_NUM_THREADS={nthreads}
|
export OMP_NUM_THREADS={nthreads}
|
||||||
export OMP_NESTED=true
|
export OMP_NESTED=true
|
||||||
|
|
||||||
pythoncm="$env $file --snapshot_path $snapshot_path --output_path $output_path --resolution $resolution --scratch_space $scratch_space --SPH_executable $SPH_executable --snapshot_kind $snapshot_kind"
|
# pythoncm="$env $file --snapshot_path $snapshot_path --output_path $output_path --resolution $resolution --scratch_space $scratch_space --SPH_executable $SPH_executable --snapshot_kind $snapshot_kind"
|
||||||
if [ $on_login -eq 1 ]; then
|
# if [ $on_login -eq 1 ]; then
|
||||||
echo $pythoncm
|
# echo $pythoncm
|
||||||
$pythoncm
|
# $pythoncm
|
||||||
else
|
# else
|
||||||
cm="addqueue -s -q $queue -n 1x$nthreads -m $memory $pythoncm"
|
# cm="addqueue -s -q $queue -n 1x$nthreads -m $memory $pythoncm"
|
||||||
echo "Submitting:"
|
# echo "Submitting:"
|
||||||
echo $cm
|
# echo $cm
|
||||||
echo
|
# echo
|
||||||
eval $cm
|
# eval $cm
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
|
|
||||||
|
# Manticore SWIFT submission loop
|
||||||
|
snapshot_kind="swift"
|
||||||
|
for k in {0..40}; do
|
||||||
|
snapshot_path="/mnt/extraspace/rstiskalek/MANTICORE/2MPP_N128_DES_V1/resimulations/R512/mcmc_$k/swift_monofonic/snap_0001/snap_0001.hdf5"
|
||||||
|
output_path="/mnt/extraspace/rstiskalek/MANTICORE/2MPP_N128_DES_V1/fields/R512/SPH_$k.hdf5"
|
||||||
|
|
||||||
|
pythoncm="$env $file --snapshot_path $snapshot_path --output_path $output_path --resolution $resolution --scratch_space $scratch_space --SPH_executable $SPH_executable --snapshot_kind $snapshot_kind"
|
||||||
|
if [ $on_login -eq 1 ]; then
|
||||||
|
echo $pythoncm
|
||||||
|
$pythoncm
|
||||||
|
else
|
||||||
|
cm="addqueue -s -q $queue -n 1x$nthreads -m $memory $pythoncm"
|
||||||
|
echo "Submitting:"
|
||||||
|
echo $cm
|
||||||
|
echo
|
||||||
|
eval $cm
|
||||||
|
fi
|
||||||
|
|
||||||
|
sleep 0.05
|
||||||
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue