-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGSscript1D.sh
More file actions
executable file
·40 lines (33 loc) · 813 Bytes
/
GSscript1D.sh
File metadata and controls
executable file
·40 lines (33 loc) · 813 Bytes
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
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
if [ -z $1 ]; then
echo unset input!
exit 0
fi
if [ $1 = "PDF" ]; then
cd /home/diana/workspace/Analysis/R_projects/
for GS in `seq 10 4 30`
do
./gen_pdf1D.sh $GS
done
fi
cd /home/diana/workspace/Analysis/Information/
GT=$2
pdfdir="pdf1D"
ADFfile=GSstudyADF$GT".dat"
ASIfile=GSstudyASI$GT".dat"
NSMfile=GSstudyNSM$GT".dat"
if [ -e $ADFfile ];then rm $ADFfile;fi
if [ -e $ASIfile ];then rm $ASIfile;fi
if [ -e $NSMfile ];then rm $NSMfile;fi
for GS in `seq 10 4 30`
do
for group in 0 1 2 3 4 5
do
./CCap1D $GT 1 $pdfdir $GS $group > results.dat
cat results.dat >> $ADFfile
./CCap1D $GT 2 $pdfdir $GS $group > results.dat
cat results.dat >> $ASIfile
./CCap1D $GT 3 $pdfdir $GS $group > results.dat
cat results.dat >> $NSMfile
done
done