11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Copyright (c) P.J.Gawthrop, 1997.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.5 1998/02/16 12:14:21 peterg
## Corrected writing out of MTTVAR matrix - now does this id non-zero
## number of variables - not vv!
##
## Revision 1.4 1997/05/09 14:20:49 peterg
## Dont declare MTTVAR array when there are no variables.
##
|
>
>
>
|
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Copyright (c) P.J.Gawthrop, 1997.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.6 1998/02/17 17:03:54 peterg
## Fixed bug in writing out matrix declaration
##
## Revision 1.5 1998/02/16 12:14:21 peterg
## Corrected writing out of MTTVAR matrix - now does this id non-zero
## number of variables - not vv!
##
## Revision 1.4 1997/05/09 14:20:49 peterg
## Dont declare MTTVAR array when there are no variables.
##
|
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
if [ "$lines" != "0" ]; then
echo "MATRIX MTTVAR($lines,1);" >> $1_sympar.r
fi
echo "MTTNVAR := $lines;" >> $1_sympar.r
echo >> $1_sympar.r
#Write out the variables in reduce format.
awk '{i++; print "MTTVAR(" i ",1) := " $1 ";"}' $1_sympar.txt >> $1_sympar.r
echo 'END;' >> $1_sympar.r
# Now invoke the standard error handling.
# mtt_error mtt_error.txt
|
|
|
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
if [ "$lines" != "0" ]; then
echo "MATRIX MTTVAR($lines,1);" >> $1_sympar.r
fi
echo "MTTNVAR := $lines;" >> $1_sympar.r
echo >> $1_sympar.r
#Write out the variables in reduce format.
gawk '{i++; print "MTTVAR(" i ",1) := " $1 ";"}' $1_sympar.txt >> $1_sympar.r
echo 'END;' >> $1_sympar.r
# Now invoke the standard error handling.
# mtt_error mtt_error.txt
|