Skip to content
Snippets Groups Projects

Make view12/14/15 parallel (one slice per job)

Merged Wouter Deconinck requested to merge view14-parallel into master
5 files
+ 24
8
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -18,7 +18,7 @@ tan ()
function print_the_help {
echo "USAGE: $0 -i <PRIM_FILE> "
echo "USAGE: $0 -i <PRIM_FILE> <slices ...> "
echo " OPTIONS: "
echo " -t,--tag filename tag (default: view1)"
exit
@@ -48,12 +48,16 @@ do
shift # past argument
shift # past value
;;
*) # unknown option
-[a-zA-Z]*) # unknown option
#POSITIONAL+=("$1") # save it in an array for later
echo "unknown option $1"
print_the_help
shift # past argument
;;
*) # positional options
#POSITIONAL+=("$1") # save it in an array for later
shift # past argument
;;
esac
done
set -- "${POSITIONAL[@]}" # restore positional parameters
@@ -90,7 +94,8 @@ make_slice(){
rm "${FILE_TAG}_temp0.prim"
rm "${FILE_TAG}.prim"
}
for zzz in $(seq 50 50 2000) ;
for zzz in $@ ;
do
make_slice ${zzz} &
done
Loading