Skip to content

Commit e9c1fe9

Browse files
committed
add example dir structure for using focmec
1 parent ce01d99 commit e9c1fe9

16 files changed

+70
-0
lines changed

plugin_dir/focmec/focmec.P.stdin

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
focmec.out.all
2+
XXX errors max
3+
\* Comment is previous line: Input file for focmec is next
4+
focmec.dat
5+
correct file [y]
6+
relative weighting..[n]
7+
XXX allowed P polarity erors..[0]
8+
50000 exit after this many acceptable solutions...[100]
9+
minimum B trend [0]
10+
B increment [5]
11+
maximum B trend [355]
12+
min B plunge..[0]
13+
increment [5]
14+
maximum..[90]
15+
minimum A angle..[0]
16+
increment [5]
17+
maximum [85]

plugin_dir/focmec/focmec.P_SH.stdin

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
focmec.out.all
2+
XXX errors max
3+
\* Comment is previous line: Input file for focmec is next
4+
focmec.dat
5+
correct file [y]
6+
relative weighting..[n]
7+
total polarity error option?..[y]
8+
XXX total number of errors (integer)..
9+
50000 exit after this many acceptable solutions...[100]
10+
minimum B trend [0]
11+
B increment [5]
12+
maximum B trend [355]
13+
min B plunge..[0]
14+
increment [5]
15+
maximum..[90]
16+
minimum A angle..[0]
17+
increment [5]
18+
maximum [85]
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
focmec.P_SH.stdin

plugin_dir/focmec/focmec.P_SV.stdin

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
focmec.P_SH.stdin
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
link_to_focmec_binary
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
link_to_focmec_binary
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
link_to_focmec_binary
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
link_to_focmec_binary
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
link_to_focmec_binary
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
link_to_focmec_binary
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rfocmec__Linux__64bit
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rfocmec__Linux__64bit
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rfocmec__Linux__64bit
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
rm focmec.lst focmec.stdout focmec_*.out -f
3+
# test which control file to use for stdin:
4+
POLS=`cat focmec.dat | sed 's#.*\(.\)$#\1#'`
5+
FILE=focmec.P
6+
case $POLS in
7+
*R*) FILE=${FILE}_SH;;
8+
*L*) FILE=${FILE}_SH;;
9+
esac
10+
case $POLS in
11+
*F*) FILE=${FILE}_SV;;
12+
*B*) FILE=${FILE}_SV;;
13+
esac
14+
FILE=${FILE}.stdin
15+
## iterate from few to many errors and break at first found solutions
16+
for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
17+
do
18+
cat $FILE | sed "s#XXX#$i#" | ./focmec__Linux__64bit > focmec.stdout
19+
echo "trying to find solution with $i P-Errors..."
20+
grep -v "nan" focmec.out.all | grep " $i.0 " > focmec.out && echo "found solution with $i Errors." && exit 0
21+
done
22+
exit 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
put_windows_script_here
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
put_windows_script_here

0 commit comments

Comments
 (0)