Mercurial > hg > cc > cirrus_home
annotate plinksJob.sh @ 157:cac9586291ad
no more gentoo,
split out functions into .bash_extras
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Mon, 04 Jul 2022 18:14:41 +0100 |
parents | 29263ba42361 |
children |
rev | line source |
---|---|
0 | 1 #!/bin/bash |
12
29263ba42361
add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
11
diff
changeset
|
2 # Usage: qsub -v t1=1stTar,tn=numTars plinksJob.sh |
0 | 3 #PBS -l select=2:ncpus=36 |
4 #PBS -l place=exclhost | |
5 #PBS -l walltime=08:00:00 | |
6 #PBS -V | |
7 #PBS -A dc007 | |
8 #PBS -N plinks | |
9 | |
11 | 10 #module load mpt |
0 | 11 |
12 cd ${PBS_O_WORKDIR} | |
12
29263ba42361
add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
11
diff
changeset
|
13 ((n1=tn/2)) |
29263ba42361
add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
11
diff
changeset
|
14 ((s1=t1)) |
29263ba42361
add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
11
diff
changeset
|
15 ((s2=t1+n1)) |
29263ba42361
add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
11
diff
changeset
|
16 ((e1=s2-1)) |
29263ba42361
add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
11
diff
changeset
|
17 ((e2=s1+tn-1)) |
29263ba42361
add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
11
diff
changeset
|
18 echo $(seq --format="%03.0f" $s1 $e1),$(seq --format="%03.0f" $s2 $e2) |
0 | 19 |
12
29263ba42361
add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
11
diff
changeset
|
20 bin/plinksMaster.sh $s1 $e1 $s2 $e2 |
29263ba42361
add args for start tar and number of tars
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
11
diff
changeset
|
21 |