-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlaunch_representatives.sh
More file actions
executable file
·37 lines (31 loc) · 1004 Bytes
/
launch_representatives.sh
File metadata and controls
executable file
·37 lines (31 loc) · 1004 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
INFILE=full_search_f3m_rep_mem.m.tpl
SCRATCH="_scratch_file"
OUTFILE_NAME=full_search_expansion
SEARCH_CASES=(
"P=3;N=10;M=1;L=3"
# "P=3;N=10;M=1;L=4"
)
for SEARCH_CASE in ${SEARCH_CASES[@]}
do
# Very sketchy but idc
eval $SEARCH_CASE
OUTFILE="_search_${SEARCH_CASE}.m"
cp $INFILE $OUTFILE
sed "s/@P@/${P}/g" $OUTFILE > $SCRATCH
cp $SCRATCH $OUTFILE
sed "s/@N@/${N}/g" $OUTFILE > $SCRATCH
cp $SCRATCH $OUTFILE
sed "s/@M@/${M}/g" $OUTFILE > $SCRATCH
cp $SCRATCH $OUTFILE
sed "s/@L@/${L}/g" $OUTFILE > $SCRATCH
cp $SCRATCH $OUTFILE
sed "s/@F@/${F}/g" $OUTFILE > $SCRATCH
cp $SCRATCH $OUTFILE
if [$L -lt 2]; then
sed "s/@SEMIFIELDS@/semifields_polynomial.m/g" $OUTFILE > $SCRATCH
else
sed "s/@SEMIFIELDS@/semifields_mmaps.m/g" $OUTFILE > $SCRATCH
fi
cp $SCRATCH $OUTFILE
screen -dm magma $OUTFILE
done