File: mminrep

package info (click to toggle)
lrslib 0.73-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,888 kB
  • sloc: ansic: 20,893; sh: 279; makefile: 252; perl: 97; csh: 51
file content (30 lines) | stat: -rwxr-xr-x 467 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash

if [ ! -n "$1" ]; then
  echo "usage:    % mminrep infile [ outfile [procs] ] " 
  exit 1
fi

rm -f $1tmp
echo "\n\ntestlin" > $1tmp
cat $1 >> $1tmp

# output goes to outfile, outfile1....       

#if [ -n "$2" ]; then
#   out=$2
#fi

if [ -n "$3" ]; then
   procs=$3
else
   procs=$(nproc)
fi

if [ -n "$2" ]; then
mpirun -np $procs --oversubscribe mplrs -minrep $1tmp $2   
else
mpirun -np $procs --oversubscribe mplrs -minrep $1tmp   
fi

rm -f $1tmp