10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
+
+
+
|
# Copyright (c) P.J.Gawthrop, 1991, 1994, 1996
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.2.4.1 2002/09/03 23:44:43 geraint
## adding global optimisation (-optg).
##
## Revision 1.2 2001/07/27 23:29:10 geraint
## Optimises only when requested (-opt).
##
## Revision 1.1 2000/12/28 12:24:03 peterg
## Put under RCS
##
## Revision 1.2 1996/08/25 10:11:32 peter
|
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
-
+
|
* )
echo "$1 is an invalid argument - ignoring" ;;
esac
shift
done
# Create the reduce output code
def2write_r $optimise $1 $2
def2write_r $1 $2
# Inform user
echo Creating $1_$2.r $optimise_msg
case $2 in
sm)
rep=csm;
|
141
142
143
144
145
146
147
148
149
150
151
152
|
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
+
+
-
+
|
quit;
EOF
cat $1_$2.r1 $1_$2.r2 > $1_$2.r
if [ ${optimise:-""} = "-optimise_global" ]; then
mtt_optimise global $1 $2
elif [ ${optimise:-""} = "-optimise_local" ]; then
mtt_optimise_global $1 $2
mtt_optimise local $1 $2
fi
# Now invoke the standard error handling.
mtt_error_r csm2sm_r.log
|