Skip to content

Commit

Permalink
progressbar
Browse files Browse the repository at this point in the history
  • Loading branch information
jiang548 committed May 4, 2022
1 parent 70b223d commit 11c217d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/network/bts1gensub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ echo "sbatch -W sub$CHUNK.sh &" >> qsub1.sh
fi

walltime_s=$(echo $walltime | awk -F: '{ print (3600 * $1) + (60 * $2) + $3 }')
echo "progress_bar $walltime_s 100 40 params $NJOBS slurm &" >> qsub1.sh
echo "wait" >> qsub1.sh

#tmpqueue=($(slist|grep $queue))
Expand All @@ -92,7 +93,6 @@ if [[ $interactive == "T" || $interactive == "True" || $interactive == "TRUE" ]]
sed -i 's/sbatch -W/srun -n1 bash/g;s/&/>\/dev\/null/g' qsub1.sh
echo -e "Running $(wc -l < job1_command) jobs ... \n"
else
echo "progress_bar $walltime_s 100 40 params $NJOBS slurm &" >> qsub1.sh
echo -e "Submitting $(wc -l < job1_command) jobs ... \n"
fi

Expand Down
2 changes: 1 addition & 1 deletion script/network/bts2gensub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ echo "sbatch -W sub$CHUNK.sh &" >> qsub2.sh
fi

walltime_s=$(echo $walltime | awk -F: '{ print (3600 * $1) + (60 * $2) + $3 }')
echo "progress_bar $walltime_s 100 40 params $NJOBS slurm &" >> qsub2.sh
echo "wait" >> qsub2.sh

#tmpqueue=($(slist|grep $queue))
Expand All @@ -96,7 +97,6 @@ if [[ $interactive == "T" || $interactive == "True" || $interactive == "TRUE" ]]
sed -i 's/sbatch -W/srun -n1 bash/g;s/&/>\/dev\/null/g' qsub2.sh
echo -e "Running $(wc -l < job2_command) jobs ... \n"
else
echo "progress_bar $walltime_s 100 40 params $NJOBS slurm &" >> qsub2.sh
echo -e "Submitting $(wc -l < job2_command) jobs ... \n"
fi

Expand Down

0 comments on commit 11c217d

Please sign in to comment.